public static Command GetCommand() { var command = new Command("add", LocalizableStrings.NetAddCommand); command.AddArgument(ProjectArgument); command.AddCommand(AddPackageParser.GetCommand()); command.AddCommand(AddProjectToProjectReferenceParser.GetCommand()); return(command); }
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); }