public LegacyInstallCommand(NewCommand parentCommand, Func <ParseResult, ITemplateEngineHost> hostBuilder, Func <ParseResult, ITelemetryLogger> telemetryLoggerBuilder, NewCommandCallbacks callbacks)
            : base(parentCommand, hostBuilder, telemetryLoggerBuilder, callbacks, "--install")
        {
            this.IsHidden = true;
            this.AddAlias("-i");

            parentCommand.AddNoLegacyUsageValidators(this, except: new Option[] { InteractiveOption, AddSourceOption });
        }
Example #2
0
        public LegacySearchCommand(NewCommand parentCommand, Func <ParseResult, ITemplateEngineHost> hostBuilder, Func <ParseResult, ITelemetryLogger> telemetryLoggerBuilder, NewCommandCallbacks callbacks)
            : base(parentCommand, hostBuilder, telemetryLoggerBuilder, callbacks, "--search")
        {
            this.IsHidden = true;
            AddValidator(ValidateParentCommandArguments);

            parentCommand.AddNoLegacyUsageValidators(this, except: Filters.Values.Concat(new Symbol[] { ColumnsAllOption, ColumnsOption, NewCommand.ShortNameArgument }).ToArray());
        }
Example #3
0
 public InstallCommand(
     NewCommand parentCommand,
     Func <ParseResult, ITemplateEngineHost> hostBuilder,
     Func <ParseResult, ITelemetryLogger> telemetryLoggerBuilder,
     NewCommandCallbacks callbacks)
     : base(parentCommand, hostBuilder, telemetryLoggerBuilder, callbacks, "install")
 {
     parentCommand.AddNoLegacyUsageValidators(this);
 }
 public LegacyUpdateCheckCommand(
     NewCommand parentCommand,
     Func <ParseResult, ITemplateEngineHost> hostBuilder,
     Func <ParseResult, ITelemetryLogger> telemetryLoggerBuilder,
     NewCommandCallbacks callbacks)
     : base(parentCommand, hostBuilder, telemetryLoggerBuilder, callbacks, "--update-check", SymbolStrings.Command_Update_Description)
 {
     this.IsHidden = true;
     parentCommand.AddNoLegacyUsageValidators(this, except: new Option[] { InteractiveOption, AddSourceOption });
 }
Example #5
0
 public UpdateCommand(
     NewCommand parentCommand,
     Func <ParseResult, ITemplateEngineHost> hostBuilder,
     Func <ParseResult, ITelemetryLogger> telemetryLoggerBuilder,
     NewCommandCallbacks callbacks)
     : base(parentCommand, hostBuilder, telemetryLoggerBuilder, callbacks, "update", SymbolStrings.Command_Update_Description)
 {
     parentCommand.AddNoLegacyUsageValidators(this);
     this.AddOption(CheckOnlyOption);
 }
        public LegacyUninstallCommand(
            NewCommand parentCommand,
            Func <ParseResult, ITemplateEngineHost> hostBuilder,
            Func <ParseResult, ITelemetryLogger> telemetryLoggerBuilder,
            NewCommandCallbacks callbacks)
            : base(hostBuilder, telemetryLoggerBuilder, callbacks, "--uninstall")
        {
            this.IsHidden = true;
            this.AddAlias("-u");

            parentCommand.AddNoLegacyUsageValidators(this);
        }