Last active
December 15, 2015 16:38
-
-
Save cjlotz/5290054 to your computer and use it in GitHub Desktop.
CommandLineOptions class used in Report Generator solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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