UNPKG

@pulumi/command

Version:

[![Actions Status](https://github.com/pulumi/pulumi-command/workflows/master/badge.svg)](https://github.com/pulumi/pulumi-command/actions) [![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://bad

46 lines 1.92 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.runOutput = exports.run = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * A local command to be executed unconditionally. * This command will always be run on any preview or deployment. Use `local.Command` to conditionally execute commands as part of the resource lifecycle. */ function run(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("command:local:run", { "addPreviousOutputInEnv": args.addPreviousOutputInEnv, "archivePaths": args.archivePaths, "assetPaths": args.assetPaths, "command": args.command, "dir": args.dir, "environment": args.environment, "interpreter": args.interpreter, "logging": args.logging, "stdin": args.stdin, }, opts); } exports.run = run; /** * A local command to be executed unconditionally. * This command will always be run on any preview or deployment. Use `local.Command` to conditionally execute commands as part of the resource lifecycle. */ function runOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("command:local:run", { "addPreviousOutputInEnv": args.addPreviousOutputInEnv, "archivePaths": args.archivePaths, "assetPaths": args.assetPaths, "command": args.command, "dir": args.dir, "environment": args.environment, "interpreter": args.interpreter, "logging": args.logging, "stdin": args.stdin, }, opts); } exports.runOutput = runOutput; //# sourceMappingURL=run.js.map