public static Command GetCommand() { var command = new Command("build-server", LocalizableStrings.CommandDescription); command.AddCommand(ServerShutdownCommandParser.GetCommand()); 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); }