private static Command ConstructCommand() { var command = new DocumentedCommand("add", DocsLink, LocalizableStrings.NetAddCommand); command.AddArgument(ProjectArgument); command.AddCommand(AddPackageParser.GetCommand()); command.AddCommand(AddProjectToProjectReferenceParser.GetCommand()); command.Handler = CommandHandler.Create <ParseResult>((parseResult) => parseResult.HandleMissingCommand()); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("list", DocsLink, LocalizableStrings.NetListCommand); command.AddArgument(SlnOrProjectArgument); command.AddCommand(ListPackageReferencesCommandParser.GetCommand()); command.AddCommand(ListProjectToProjectReferencesCommandParser.GetCommand()); command.SetHandler((parseResult) => parseResult.HandleMissingCommand()); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("remove", DocsLink, LocalizableStrings.NetRemoveCommand); command.AddArgument(ProjectArgument); command.AddCommand(RemovePackageParser.GetCommand()); command.AddCommand(RemoveProjectToProjectReferenceParser.GetCommand()); command.SetHandler((parseResult) => parseResult.HandleMissingCommand()); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("sln", DocsLink, LocalizableStrings.AppFullName); command.AddArgument(SlnArgument); command.AddCommand(SlnAddParser.GetCommand()); command.AddCommand(SlnListParser.GetCommand()); command.AddCommand(SlnRemoveParser.GetCommand()); command.Handler = CommandHandler.Create <ParseResult>((parseResult) => parseResult.HandleMissingCommand()); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("build-server", DocsLink, LocalizableStrings.CommandDescription); command.AddCommand(ServerShutdownCommandParser.GetCommand()); command.Handler = CommandHandler.Create <ParseResult>((parseResult) => parseResult.HandleMissingCommand()); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("sdk", DocsLink, LocalizableStrings.AppFullName); command.AddCommand(SdkCheckCommandParser.GetCommand()); command.SetHandler((parseResult) => parseResult.HandleMissingCommand()); 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); }
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); }
private static Command ConstructCommand() { var command = new DocumentedCommand("nuget", DocsLink); command.AddOption(new Option <bool>("--version")); command.AddOption(new Option <string>(new string[] { "-v", "--verbosity" })); command.AddCommand(GetDeleteCommand()); command.AddCommand(GetLocalsCommand()); command.AddCommand(GetPushCommand()); command.AddCommand(GetVerifyCommand()); command.AddCommand(GetTrustCommand()); command.AddCommand(GetSignCommand()); command.SetHandler(NuGetCommand.Run); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("nuget", DocsLink); command.AddOption(new Option <bool>("--version")); command.AddOption(new Option <string>(new string[] { "-v", "--verbosity" })); command.AddArgument(new Argument() { IsHidden = true }); command.AddCommand(GetDeleteCommand()); command.AddCommand(GetLocalsCommand()); command.AddCommand(GetPushCommand()); command.AddCommand(GetVerifyCommand()); command.AddCommand(GetTrustCommand()); command.AddCommand(GetSignCommand()); command.Handler = CommandHandler.Create <ParseResult>(NuGetCommand.Run); return(command); }