예제 #1
0
        private static void Npx(this ICakeContext context, NpxSettings npxSettings)
        {
            var npxTool = new NpxTool(
                context.FileSystem,
                context.Environment,
                context.ProcessRunner,
                context.Tools,
                context.Log);

            npxTool.Execute(npxSettings);
        }
예제 #2
0
        public static void Npx(
            this ICakeContext context,
            string command,
            ProcessArgumentBuilder arguments,
            Action <NpxSettings> configureSettings)
        {
            var npxSettings = new NpxSettings(command, arguments);

            configureSettings?.Invoke(npxSettings);

            context.Npx(npxSettings);
        }
예제 #3
0
        public static void Npx(
            this ICakeContext context,
            string command,
            ProcessArgumentBuilder arguments,
            Action <NpxSettings> configureSettings,
            out string[] redirectedStandardOutput)
        {
            var npxSettings = new NpxSettings(command, arguments);

            configureSettings?.Invoke(npxSettings);

            context.Npx(npxSettings, out redirectedStandardOutput);
        }
예제 #4
0
        private static void Npx(
            this ICakeContext context,
            NpxSettings npxSettings,
            out string[] redirectedStandardOutput)
        {
            var npxTool = new NpxTool(
                context.FileSystem,
                context.Environment,
                context.ProcessRunner,
                context.Tools,
                context.Log);

            npxTool.Execute(npxSettings, out redirectedStandardOutput);
        }