private static Command ConstructCommand() { var command = new DocumentedCommand("msbuild", DocsLink, LocalizableStrings.AppFullName); command.Handler = CommandHandler.Create <ParseResult>(MSBuildCommand.Run); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("format", DocsLink); command.SetHandler(FormatCommand.Run); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("msbuild", DocsLink, LocalizableStrings.AppFullName); command.SetHandler(MSBuildCommand.Run); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("help", DocsLink, LocalizableStrings.AppFullName); command.AddArgument(Argument); command.Handler = CommandHandler.Create <ParseResult>(HelpCommand.Run); return(command); }
private static Command ConstructCommand() { var formatCommand = new DocumentedCommand("format", DocsLink, LocalizableStrings.Formats_code_to_match_editorconfig_settings) { FormatWhitespaceCommandParser.GetCommand(), FormatStyleCommandParser.GetCommand(), FormatAnalyzersCommandParser.GetCommand(), DiagnosticsOption, SeverityOption, }; formatCommand.AddCommonOptions(); formatCommand.SetHandler((ParseResult parseResult) => FormatCommand.Run(parseResult.GetArguments())); return(formatCommand); }