public static Command GetCommand() { var command = new Command("tool", LocalizableStrings.CommandDescription); command.AddCommand(ToolInstallCommandParser.GetCommand()); command.AddCommand(ToolUninstallCommandParser.GetCommand()); command.AddCommand(ToolUpdateCommandParser.GetCommand()); command.AddCommand(ToolListCommandParser.GetCommand()); command.AddCommand(ToolRunCommandParser.GetCommand()); command.AddCommand(ToolSearchCommandParser.GetCommand()); command.AddCommand(ToolRestoreCommandParser.GetCommand()); return(command); }
public static Command Tool() { return(Create.Command( "tool", LocalizableStrings.CommandDescription, Accept.NoArguments(), CommonOptions.HelpOption(), ToolInstallCommandParser.ToolInstall(), ToolUninstallCommandParser.ToolUninstall(), ToolUpdateCommandParser.ToolUpdate(), ToolListCommandParser.ToolList(), ToolRunCommandParser.ToolRun(), ToolSearchCommandParser.ToolSearch(), ToolRestoreCommandParser.ToolRestore())); }
private static Command ConstructCommand() { var command = new DocumentedCommand("tool", DocsLink, LocalizableStrings.CommandDescription); command.AddCommand(ToolInstallCommandParser.GetCommand()); command.AddCommand(ToolUninstallCommandParser.GetCommand()); command.AddCommand(ToolUpdateCommandParser.GetCommand()); command.AddCommand(ToolListCommandParser.GetCommand()); command.AddCommand(ToolRunCommandParser.GetCommand()); command.AddCommand(ToolSearchCommandParser.GetCommand()); command.AddCommand(ToolRestoreCommandParser.GetCommand()); command.SetHandler((parseResult) => parseResult.HandleMissingCommand()); return(command); }