public LegacyListCommand( NewCommand parentCommand, Func <ParseResult, ITemplateEngineHost> hostBuilder, Func <ParseResult, ITelemetryLogger> telemetryLoggerBuilder, NewCommandCallbacks callbacks) : base(parentCommand, hostBuilder, telemetryLoggerBuilder, callbacks, "--list") { this.IsHidden = true; this.AddAlias("-l"); AddValidator(ValidateParentCommandArguments); parentCommand.AddNoLegacyUsageValidators(this, except: Filters.Values.Concat(new Symbol[] { ColumnsAllOption, ColumnsOption, NewCommand.ShortNameArgument }).ToArray()); }
internal BaseUpdateCommand( NewCommand parentCommand, Func <ParseResult, ITemplateEngineHost> hostBuilder, Func <ParseResult, ITelemetryLogger> telemetryLoggerBuilder, NewCommandCallbacks callbacks, string commandName, string description) : base(hostBuilder, telemetryLoggerBuilder, callbacks, commandName, description) { ParentCommand = parentCommand; this.AddOption(InteractiveOption); this.AddOption(AddSourceOption); }
internal BaseSearchCommand( NewCommand parentCommand, Func <ParseResult, ITemplateEngineHost> hostBuilder, Func <ParseResult, ITelemetryLogger> telemetryLoggerBuilder, NewCommandCallbacks callbacks, string commandName) : base(hostBuilder, telemetryLoggerBuilder, callbacks, commandName, SymbolStrings.Command_Search_Description) { ParentCommand = parentCommand; Filters = SetupFilterOptions(SupportedFilters); this.AddArgument(NameArgument); SetupTabularOutputOptions(this); }
internal BaseInstallCommand( NewCommand parentCommand, Func <ParseResult, ITemplateEngineHost> hostBuilder, Func <ParseResult, ITelemetryLogger> telemetryLoggerBuilder, NewCommandCallbacks callbacks, string commandName) : base(hostBuilder, telemetryLoggerBuilder, callbacks, commandName, SymbolStrings.Command_Install_Description) { ParentCommand = parentCommand; this.AddArgument(NameArgument); this.AddOption(InteractiveOption); this.AddOption(AddSourceOption); this.AddOption(ForceOption); }