public static Command GetCommand()
        {
            var command = new Command("build-server", LocalizableStrings.CommandDescription);

            command.AddCommand(ServerShutdownCommandParser.GetCommand());

            return(command);
        }
Esempio n. 2
0
 public static Command CreateCommand()
 {
     return(Create.Command(
                "build-server",
                LocalizableStrings.CommandDescription,
                Accept.NoArguments(),
                CommonOptions.HelpOption(),
                ServerShutdownCommandParser.CreateCommand()));
 }
Esempio n. 3
0
        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);
        }