Skip to content

Instantly share code, notes, and snippets.

@cjlotz
Last active December 15, 2015 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjlotz/5290054 to your computer and use it in GitHub Desktop.
Save cjlotz/5290054 to your computer and use it in GitHub Desktop.
CommandLineOptions class used in Report Generator solution
public enum AppAction
{
View = 0,
Export = 1
}
public class CommandLineOptions
{
public CommandLineOptions()
{
}
#region Properties
public AppAction Action { get; set; }
public string BuildNumber { get; set; }
public string ExportFile { get; set; }
public bool LinkWorkItems { get; set; }
public string ManualReleaseNotesFile { get; set; }
public string TfsProject { get; set; }
public string TfsQueryHierarchy { get; set; }
public string TfsQueryName { get; set; }
public string TfsServerUrl { get; set; }
public QueryDefinition TfsQuery { get; set; }
#endregion
#region Methods
public static CommandLineOptions Default()
{
return new CommandLineOptions
{
Action = AppAction.View,
TfsServerUrl = "http://my-server:8080/coll",
TfsProject = "MyProject",
TfsQueryHierarchy = "Shared Queries",
TfsQueryName = "Release Notes",
ExportFile = "ReleaseNotes",
BuildNumber = string.Empty,
NewReleaseNotesFile = string.Empty,
LinkWorkItems = false,
};
}
#endregion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment