public static Command GetCommand() { Command command = new Command("restore", LocalizableStrings.CommandDescription); command.AddArgument(RestoreCommandParser.SlnOrProjectArgument); WorkloadInstallCommandParser.AddWorkloadInstallCommandOptions(command); return(command); }
private static Command ConstructCommand() { Command command = new Command("restore", LocalizableStrings.CommandDescription); command.AddArgument(RestoreCommandParser.SlnOrProjectArgument); WorkloadInstallCommandParser.AddWorkloadInstallCommandOptions(command); command.SetHandler((parseResult) => new WorkloadRestoreCommand(parseResult).Execute()); return(command); }
public static Command GetCommand() { var command = new Command("workload", LocalizableStrings.CommandDescription); command.AddCommand(WorkloadInstallCommandParser.GetCommand()); command.AddCommand(WorkloadUninstallCommandParser.GetCommand()); command.AddCommand(WorkloadUpdateCommandParser.GetCommand()); command.AddCommand(WorkloadListCommandParser.GetCommand()); command.AddCommand(WorkloadRestoreCommandParser.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); }