You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varinstall=newCommand("install","Prepares a project to have version stamps applied using Nerdbank.GitVersioning.")
87
87
{
88
-
newOption<string>(new[]{"--path","-p"},"The path to the directory that should contain the version.json file. The default is the root of the git repo."),
89
-
newOption<string>(new[]{"--version","-v"},$"The initial version to set. The default is {DefaultVersionSpec}."),
88
+
newOption<string>(new[]{"--path","-p"},"The path to the directory that should contain the version.json file. The default is the root of the git repo.").LegalFilePathsOnly(),
89
+
newOption<string>(new[]{"--version","-v"},()=>DefaultVersionSpec,$"The initial version to set."),
90
90
newOption<string[]>(new[]{"--source","-s"},$"The URI(s) of the NuGet package source(s) used to determine the latest stable version of the {PackageId} package. This setting overrides all of the sources specified in the NuGet.Config files.")
varsetVersion=newCommand("set-version","Updates the version stamp that is applied to a project.")
122
122
{
123
-
newOption<string>(new[]{"--project","-p"},"The path to the project or project directory. The default is the root directory of the repo that spans the current directory, or an existing version.json file, if applicable."),
123
+
newOption<string>(new[]{"--project","-p"},"The path to the project or project directory. The default is the root directory of the repo that spans the current directory, or an existing version.json file, if applicable.").LegalFilePathsOnly(),
124
124
newArgument<string>("version","The version to set."),
vartag=newCommand("tag","Creates a git tag to mark a version.")
130
130
{
131
-
newOption<string>(new[]{"--project","-p"},"The path to the project or project directory. The default is the root directory of the repo that spans the current directory, or an existing version.json file, if applicable."),
131
+
newOption<string>(new[]{"--project","-p"},"The path to the project or project directory. The default is the root directory of the repo that spans the current directory, or an existing version.json file, if applicable.").LegalFilePathsOnly(),
132
132
newArgument<string>("versionOrRef",()=>DefaultRef,$"The a.b.c[.d] version or git ref to be tagged.")
vargetCommits=newCommand("get-commits","Gets the commit(s) that match a given version.")
141
141
{
142
-
newOption<string>(new[]{"--project","-p"},"The path to the project or project directory. The default is the root directory of the repo that spans the current directory, or an existing version.json file, if applicable."),
142
+
newOption<string>(new[]{"--project","-p"},"The path to the project or project directory. The default is the root directory of the repo that spans the current directory, or an existing version.json file, if applicable.").LegalFilePathsOnly(),
varcloud=newCommand("cloud","Communicates with the ambient cloud build to set the build number and/or other cloud build variables.")
150
150
{
151
-
newOption<string>(new[]{"--project","-p"},"The path to the project or project directory used to calculate the version. The default is the current directory. Ignored if the -v option is specified."),
151
+
newOption<string>(new[]{"--project","-p"},"The path to the project or project directory used to calculate the version. The default is the current directory. Ignored if the -v option is specified.").LegalFilePathsOnly(),
152
152
newOption<string[]>("--metadata","Adds an identifier to the build metadata part of a semantic version.")
varprepareRelease=newCommand("prepare-release","Prepares a release by creating a release branch for the current version and adjusting the version on the current branch.")
175
175
{
176
-
newOption<string>(new[]{"--project","-p"},"The path to the project or project directory. The default is the current directory."),
176
+
newOption<string>(new[]{"--project","-p"},"The path to the project or project directory. The default is the current directory.").LegalFilePathsOnly(),
177
177
newOption<string>("--nextVersion","The version to set for the current branch. If omitted, the next version is determined automatically by incrementing the current version."),
178
178
newOption<string>("--versionIncrement","Overrides the 'versionIncrement' setting set in version.json for determining the next version of the current branch."),
179
179
newOption<string>(new[]{"--format","-f"},$"The format to write information about the release. Allowed values are: {string.Join(", ",SupportedFormats)}. The default is {DefaultOutputFormat}.").FromAmong(SupportedFormats),
0 commit comments