Skip to content

Commit

Permalink
Updates to workload config command
Browse files Browse the repository at this point in the history
  • Loading branch information
dsplaisted committed Mar 20, 2024
1 parent 321b6d4 commit bcc7037
Show file tree
Hide file tree
Showing 16 changed files with 126 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="CommandDescription" xml:space="preserve">
<value>Modify or display workload configuration values.</value>
<value>Modify or display workload configuration values.
To display a value, specify the corresponding command-line option without providing a value. For example: "dotnet workload config --update-mode"</value>
</data>
<data name="UpdateModeDescription" xml:space="preserve">
<value>Controls whether updates should look for workload sets or the latest version of each individual manifest.</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ public override int Execute()
}
else
{
Reporter.WriteLine($"Invalid update mode: {_updateMode}");
return 1;
// This should not be hit, as parser sets the accepted values and should error before getting here if the value is not valid
throw new InvalidOperationException($"Invalid update mode: {_updateMode}");
}
}
else
{
Reporter.WriteLine("No update mode specified");
_parseResult.ShowHelp();
}

return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal static class WorkloadConfigCommandParser

public static readonly CliOption<string> UpdateMode = new("--update-mode")
{
Description = "Set the update mode for the workload manifest",
Description = LocalizableStrings.UpdateModeDescription,
//Hidden = true,
Arity = ArgumentArity.ZeroOrOne
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bcc7037

Please sign in to comment.