NpmTaskRunner.TaskNode.Invoke C# (CSharp) Méthode

Invoke() public méthode

public Invoke ( ITaskRunnerCommandContext context ) : Task
context ITaskRunnerCommandContext
Résultat Task
        public override Task<ITaskRunnerCommandResult> Invoke(ITaskRunnerCommandContext context)
        {
            // if the CLI is Yarn and the Verbose option is enabled, set the verbose option correctly
            if (!_isNpm && this.Command.Options?.Trim() == Constants.NPM_VERBOSE_OPTION)
                this.Command.Options = this.Command.Options.Replace(Constants.NPM_VERBOSE_OPTION, Constants.YARN_VERBOSE_OPTION).Trim();

            return base.Invoke(context);
        }