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); }