public static Command GetCommand() { var command = new Command("workload", LocalizableStrings.CommandDescription); command.AddCommand(WorkloadInstallCommandParser.GetCommand()); command.AddCommand(WorkloadUpdateCommandParser.GetCommand()); command.AddCommand(WorkloadListCommandParser.GetCommand()); command.AddCommand(WorkloadSearchCommandParser.GetCommand()); command.AddCommand(WorkloadUninstallCommandParser.GetCommand()); command.AddCommand(WorkloadRepairCommandParser.GetCommand()); command.AddCommand(WorkloadRestoreCommandParser.GetCommand()); command.AddCommand(WorkloadElevateCommandParser.GetCommand()); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("workload", DocsLink, LocalizableStrings.CommandDescription); command.AddCommand(WorkloadInstallCommandParser.GetCommand()); command.AddCommand(WorkloadUpdateCommandParser.GetCommand()); command.AddCommand(WorkloadListCommandParser.GetCommand()); command.AddCommand(WorkloadSearchCommandParser.GetCommand()); command.AddCommand(WorkloadUninstallCommandParser.GetCommand()); command.AddCommand(WorkloadRepairCommandParser.GetCommand()); command.AddCommand(WorkloadRestoreCommandParser.GetCommand()); command.AddCommand(WorkloadElevateCommandParser.GetCommand()); command.SetHandler((parseResult) => parseResult.HandleMissingCommand()); return(command); }