зеркало из https://github.com/microsoft/Atlas.git
Adding descriptions to top level commands (#58)
* Initial commit for adding descriptions to top level commands * Updated descriptions Resolves #33
This commit is contained in:
Родитель
83a65a6514
Коммит
0e4287a674
|
@ -118,6 +118,7 @@ namespace Microsoft.Atlas.CommandLine
|
||||||
|
|
||||||
app.Command("help", help =>
|
app.Command("help", help =>
|
||||||
{
|
{
|
||||||
|
help.Description = "Show help information";
|
||||||
var command = help.Argument("command", "Show help for particular arguments", true);
|
var command = help.Argument("command", "Show help for particular arguments", true);
|
||||||
|
|
||||||
help.OnExecute(() =>
|
help.OnExecute(() =>
|
||||||
|
@ -134,19 +135,23 @@ namespace Microsoft.Atlas.CommandLine
|
||||||
|
|
||||||
app.Command("account", account =>
|
app.Command("account", account =>
|
||||||
{
|
{
|
||||||
|
account.Description = "Manages authentication credentials";
|
||||||
account.Command("clear", clear =>
|
account.Command("clear", clear =>
|
||||||
{
|
{
|
||||||
|
clear.Description = "Remove any authentication credentials which have been stored";
|
||||||
clear.OnExecute<AccountCommands>();
|
clear.OnExecute<AccountCommands>();
|
||||||
});
|
});
|
||||||
|
|
||||||
account.Command("show", show =>
|
account.Command("show", show =>
|
||||||
{
|
{
|
||||||
|
show.Description = " Displays the credentials have been stored";
|
||||||
show.Option("-n|--name", "Names to show", CommandOptionType.MultipleValue);
|
show.Option("-n|--name", "Names to show", CommandOptionType.MultipleValue);
|
||||||
show.OnExecute<AccountCommands>();
|
show.OnExecute<AccountCommands>();
|
||||||
});
|
});
|
||||||
|
|
||||||
account.Command("add", add =>
|
account.Command("add", add =>
|
||||||
{
|
{
|
||||||
|
add.Description = "Stores authentication credentials to be used by non-interactive deploy";
|
||||||
add.Option("-n|--name", "Unique name for entry being added", CommandOptionType.SingleValue);
|
add.Option("-n|--name", "Unique name for entry being added", CommandOptionType.SingleValue);
|
||||||
add.Option("--resource", "Resource guid or uri being authorized", CommandOptionType.SingleValue);
|
add.Option("--resource", "Resource guid or uri being authorized", CommandOptionType.SingleValue);
|
||||||
add.Option("--authority", "OAuth token authority url", CommandOptionType.SingleValue);
|
add.Option("--authority", "OAuth token authority url", CommandOptionType.SingleValue);
|
||||||
|
@ -174,6 +179,7 @@ namespace Microsoft.Atlas.CommandLine
|
||||||
|
|
||||||
app.Command("generate", generate =>
|
app.Command("generate", generate =>
|
||||||
{
|
{
|
||||||
|
generate.Description = "Processes a workflow without executing any operations";
|
||||||
generate.Argument("blueprint", "Path or url to atlas blueprint");
|
generate.Argument("blueprint", "Path or url to atlas blueprint");
|
||||||
|
|
||||||
generate.Option("-f|--values", "Input file containing parameter values", CommandOptionType.MultipleValue, inherited: true);
|
generate.Option("-f|--values", "Input file containing parameter values", CommandOptionType.MultipleValue, inherited: true);
|
||||||
|
@ -185,6 +191,7 @@ namespace Microsoft.Atlas.CommandLine
|
||||||
|
|
||||||
app.Command("deploy", deploy =>
|
app.Command("deploy", deploy =>
|
||||||
{
|
{
|
||||||
|
deploy.Description = "Processes a workflow and executes the operations";
|
||||||
deploy.Argument("blueprint", "Path or url to atlas blueprint");
|
deploy.Argument("blueprint", "Path or url to atlas blueprint");
|
||||||
deploy.Argument("target", "Name of workflow yaml file inside template", multipleValues: true);
|
deploy.Argument("target", "Name of workflow yaml file inside template", multipleValues: true);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче