@pulumi/command 1.1.0-alpha.1747421785 → 1.1.0-alpha.1747439732
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/local/command.d.ts +50 -22
- package/local/command.js.map +1 -1
- package/local/run.d.ts +4 -4
- package/local/run.js +4 -4
- package/package.json +3 -3
- package/package.json.dev +2 -2
- package/remote/command.d.ts +50 -22
- package/remote/command.js.map +1 -1
package/local/command.d.ts
CHANGED
|
@@ -193,13 +193,19 @@ export declare class Command extends pulumi.CustomResource {
|
|
|
193
193
|
[key: string]: pulumi.asset.Asset | pulumi.asset.Archive;
|
|
194
194
|
} | undefined>;
|
|
195
195
|
/**
|
|
196
|
-
* The command to run on
|
|
196
|
+
* The command to run once on resource creation.
|
|
197
|
+
*
|
|
198
|
+
* If an `update` command isn't provided, then `create` will also be run when the resource's inputs are modified.
|
|
199
|
+
*
|
|
200
|
+
* Note that this command will not be executed if the resource has already been created and its inputs are unchanged.
|
|
201
|
+
*
|
|
202
|
+
* Use `local.runOutput` if you need to run a command on every execution of your program.
|
|
197
203
|
*/
|
|
198
204
|
readonly create: pulumi.Output<string | undefined>;
|
|
199
205
|
/**
|
|
200
|
-
* The command to run on
|
|
201
|
-
*
|
|
202
|
-
* Command resource from previous create or update steps.
|
|
206
|
+
* The command to run on resource delettion.
|
|
207
|
+
*
|
|
208
|
+
* The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the stdout and stderr properties of the Command resource from previous create or update steps.
|
|
203
209
|
*/
|
|
204
210
|
readonly delete: pulumi.Output<string | undefined>;
|
|
205
211
|
/**
|
|
@@ -237,17 +243,25 @@ export declare class Command extends pulumi.CustomResource {
|
|
|
237
243
|
*/
|
|
238
244
|
readonly stdout: pulumi.Output<string>;
|
|
239
245
|
/**
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
246
|
+
* The resource will be updated (or replaced) if any of these values change.
|
|
247
|
+
*
|
|
248
|
+
* The trigger values can be of any type.
|
|
249
|
+
*
|
|
250
|
+
* If the `update` command was provided the resource will be updated, otherwise it will be replaced using the `create` command.
|
|
251
|
+
*
|
|
243
252
|
* Please see the resource documentation for examples.
|
|
244
253
|
*/
|
|
245
254
|
readonly triggers: pulumi.Output<any[] | undefined>;
|
|
246
255
|
/**
|
|
247
|
-
* The command to run
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
256
|
+
* The command to run when the resource is updated.
|
|
257
|
+
*
|
|
258
|
+
* If empty, the create command will be executed instead.
|
|
259
|
+
*
|
|
260
|
+
* Note that this command will not run if the resource's inputs are unchanged.
|
|
261
|
+
*
|
|
262
|
+
* Use `local.runOutput` if you need to run a command on every execution of your program.
|
|
263
|
+
*
|
|
264
|
+
* The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the `stdout` and `stderr` properties of the Command resource from previous create or update steps.
|
|
251
265
|
*/
|
|
252
266
|
readonly update: pulumi.Output<string | undefined>;
|
|
253
267
|
/**
|
|
@@ -352,13 +366,19 @@ export interface CommandArgs {
|
|
|
352
366
|
*/
|
|
353
367
|
assetPaths?: pulumi.Input<pulumi.Input<string>[]>;
|
|
354
368
|
/**
|
|
355
|
-
* The command to run on
|
|
369
|
+
* The command to run once on resource creation.
|
|
370
|
+
*
|
|
371
|
+
* If an `update` command isn't provided, then `create` will also be run when the resource's inputs are modified.
|
|
372
|
+
*
|
|
373
|
+
* Note that this command will not be executed if the resource has already been created and its inputs are unchanged.
|
|
374
|
+
*
|
|
375
|
+
* Use `local.runOutput` if you need to run a command on every execution of your program.
|
|
356
376
|
*/
|
|
357
377
|
create?: pulumi.Input<string>;
|
|
358
378
|
/**
|
|
359
|
-
* The command to run on
|
|
360
|
-
*
|
|
361
|
-
* Command resource from previous create or update steps.
|
|
379
|
+
* The command to run on resource delettion.
|
|
380
|
+
*
|
|
381
|
+
* The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the stdout and stderr properties of the Command resource from previous create or update steps.
|
|
362
382
|
*/
|
|
363
383
|
delete?: pulumi.Input<string>;
|
|
364
384
|
/**
|
|
@@ -388,17 +408,25 @@ export interface CommandArgs {
|
|
|
388
408
|
*/
|
|
389
409
|
stdin?: pulumi.Input<string>;
|
|
390
410
|
/**
|
|
391
|
-
*
|
|
392
|
-
*
|
|
393
|
-
*
|
|
411
|
+
* The resource will be updated (or replaced) if any of these values change.
|
|
412
|
+
*
|
|
413
|
+
* The trigger values can be of any type.
|
|
414
|
+
*
|
|
415
|
+
* If the `update` command was provided the resource will be updated, otherwise it will be replaced using the `create` command.
|
|
416
|
+
*
|
|
394
417
|
* Please see the resource documentation for examples.
|
|
395
418
|
*/
|
|
396
419
|
triggers?: pulumi.Input<any[]>;
|
|
397
420
|
/**
|
|
398
|
-
* The command to run
|
|
399
|
-
*
|
|
400
|
-
*
|
|
401
|
-
*
|
|
421
|
+
* The command to run when the resource is updated.
|
|
422
|
+
*
|
|
423
|
+
* If empty, the create command will be executed instead.
|
|
424
|
+
*
|
|
425
|
+
* Note that this command will not run if the resource's inputs are unchanged.
|
|
426
|
+
*
|
|
427
|
+
* Use `local.runOutput` if you need to run a command on every execution of your program.
|
|
428
|
+
*
|
|
429
|
+
* The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the `stdout` and `stderr` properties of the Command resource from previous create or update steps.
|
|
402
430
|
*/
|
|
403
431
|
update?: pulumi.Input<string>;
|
|
404
432
|
}
|
package/local/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../local/command.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;A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,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,gBAAgB,GAAG,EAAE,gBAAgB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACnD,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AApPL,0BAqPC;AAxOG,gBAAgB;AACO,oBAAY,GAAG,uBAAuB,CAAC"}
|
package/local/run.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as enums from "../types/enums";
|
|
3
3
|
/**
|
|
4
|
-
* A local command to be executed.
|
|
5
|
-
* This command will always be run on any preview or deployment. Use `local.Command` to
|
|
4
|
+
* A local command to be executed unconditionally.
|
|
5
|
+
* This command will always be run on any preview or deployment. Use `local.Command` to conditionally execute commands as part of the resource lifecycle.
|
|
6
6
|
*/
|
|
7
7
|
export declare function run(args: RunArgs, opts?: pulumi.InvokeOptions): Promise<RunResult>;
|
|
8
8
|
export interface RunArgs {
|
|
@@ -265,8 +265,8 @@ export interface RunResult {
|
|
|
265
265
|
readonly stdout: string;
|
|
266
266
|
}
|
|
267
267
|
/**
|
|
268
|
-
* A local command to be executed.
|
|
269
|
-
* This command will always be run on any preview or deployment. Use `local.Command` to
|
|
268
|
+
* A local command to be executed unconditionally.
|
|
269
|
+
* This command will always be run on any preview or deployment. Use `local.Command` to conditionally execute commands as part of the resource lifecycle.
|
|
270
270
|
*/
|
|
271
271
|
export declare function runOutput(args: RunOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<RunResult>;
|
|
272
272
|
export interface RunOutputArgs {
|
package/local/run.js
CHANGED
|
@@ -6,8 +6,8 @@ exports.runOutput = exports.run = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* A local command to be executed.
|
|
10
|
-
* This command will always be run on any preview or deployment. Use `local.Command` to
|
|
9
|
+
* A local command to be executed unconditionally.
|
|
10
|
+
* This command will always be run on any preview or deployment. Use `local.Command` to conditionally execute commands as part of the resource lifecycle.
|
|
11
11
|
*/
|
|
12
12
|
function run(args, opts) {
|
|
13
13
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -25,8 +25,8 @@ function run(args, opts) {
|
|
|
25
25
|
}
|
|
26
26
|
exports.run = run;
|
|
27
27
|
/**
|
|
28
|
-
* A local command to be executed.
|
|
29
|
-
* This command will always be run on any preview or deployment. Use `local.Command` to
|
|
28
|
+
* A local command to be executed unconditionally.
|
|
29
|
+
* This command will always be run on any preview or deployment. Use `local.Command` to conditionally execute commands as part of the resource lifecycle.
|
|
30
30
|
*/
|
|
31
31
|
function runOutput(args, opts) {
|
|
32
32
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/command",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.1747439732",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pulumi",
|
|
6
6
|
"command",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource command 1.1.0-alpha.
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource command 1.1.0-alpha.1747439732"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pulumi/pulumi": "^3.142.0"
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "command",
|
|
27
|
-
"version": "1.1.0-alpha.
|
|
27
|
+
"version": "1.1.0-alpha.1747439732"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/command",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.1747439732",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pulumi",
|
|
6
6
|
"command",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "command",
|
|
26
|
-
"version": "1.1.0-alpha.
|
|
26
|
+
"version": "1.1.0-alpha.1747439732"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/remote/command.d.ts
CHANGED
|
@@ -87,13 +87,19 @@ export declare class Command extends pulumi.CustomResource {
|
|
|
87
87
|
*/
|
|
88
88
|
readonly connection: pulumi.Output<outputs.remote.Connection>;
|
|
89
89
|
/**
|
|
90
|
-
* The command to run on
|
|
90
|
+
* The command to run once on resource creation.
|
|
91
|
+
*
|
|
92
|
+
* If an `update` command isn't provided, then `create` will also be run when the resource's inputs are modified.
|
|
93
|
+
*
|
|
94
|
+
* Note that this command will not be executed if the resource has already been created and its inputs are unchanged.
|
|
95
|
+
*
|
|
96
|
+
* Use `local.runOutput` if you need to run a command on every execution of your program.
|
|
91
97
|
*/
|
|
92
98
|
readonly create: pulumi.Output<string | undefined>;
|
|
93
99
|
/**
|
|
94
|
-
* The command to run on
|
|
95
|
-
*
|
|
96
|
-
* Command resource from previous create or update steps.
|
|
100
|
+
* The command to run on resource delettion.
|
|
101
|
+
*
|
|
102
|
+
* The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the stdout and stderr properties of the Command resource from previous create or update steps.
|
|
97
103
|
*/
|
|
98
104
|
readonly delete: pulumi.Output<string | undefined>;
|
|
99
105
|
/**
|
|
@@ -124,17 +130,25 @@ export declare class Command extends pulumi.CustomResource {
|
|
|
124
130
|
*/
|
|
125
131
|
readonly stdout: pulumi.Output<string>;
|
|
126
132
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
133
|
+
* The resource will be updated (or replaced) if any of these values change.
|
|
134
|
+
*
|
|
135
|
+
* The trigger values can be of any type.
|
|
136
|
+
*
|
|
137
|
+
* If the `update` command was provided the resource will be updated, otherwise it will be replaced using the `create` command.
|
|
138
|
+
*
|
|
130
139
|
* Please see the resource documentation for examples.
|
|
131
140
|
*/
|
|
132
141
|
readonly triggers: pulumi.Output<any[] | undefined>;
|
|
133
142
|
/**
|
|
134
|
-
* The command to run
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
143
|
+
* The command to run when the resource is updated.
|
|
144
|
+
*
|
|
145
|
+
* If empty, the create command will be executed instead.
|
|
146
|
+
*
|
|
147
|
+
* Note that this command will not run if the resource's inputs are unchanged.
|
|
148
|
+
*
|
|
149
|
+
* Use `local.runOutput` if you need to run a command on every execution of your program.
|
|
150
|
+
*
|
|
151
|
+
* The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the `stdout` and `stderr` properties of the Command resource from previous create or update steps.
|
|
138
152
|
*/
|
|
139
153
|
readonly update: pulumi.Output<string | undefined>;
|
|
140
154
|
/**
|
|
@@ -161,13 +175,19 @@ export interface CommandArgs {
|
|
|
161
175
|
*/
|
|
162
176
|
connection: pulumi.Input<inputs.remote.ConnectionArgs>;
|
|
163
177
|
/**
|
|
164
|
-
* The command to run on
|
|
178
|
+
* The command to run once on resource creation.
|
|
179
|
+
*
|
|
180
|
+
* If an `update` command isn't provided, then `create` will also be run when the resource's inputs are modified.
|
|
181
|
+
*
|
|
182
|
+
* Note that this command will not be executed if the resource has already been created and its inputs are unchanged.
|
|
183
|
+
*
|
|
184
|
+
* Use `local.runOutput` if you need to run a command on every execution of your program.
|
|
165
185
|
*/
|
|
166
186
|
create?: pulumi.Input<string>;
|
|
167
187
|
/**
|
|
168
|
-
* The command to run on
|
|
169
|
-
*
|
|
170
|
-
* Command resource from previous create or update steps.
|
|
188
|
+
* The command to run on resource delettion.
|
|
189
|
+
*
|
|
190
|
+
* The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the stdout and stderr properties of the Command resource from previous create or update steps.
|
|
171
191
|
*/
|
|
172
192
|
delete?: pulumi.Input<string>;
|
|
173
193
|
/**
|
|
@@ -190,17 +210,25 @@ export interface CommandArgs {
|
|
|
190
210
|
*/
|
|
191
211
|
stdin?: pulumi.Input<string>;
|
|
192
212
|
/**
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
213
|
+
* The resource will be updated (or replaced) if any of these values change.
|
|
214
|
+
*
|
|
215
|
+
* The trigger values can be of any type.
|
|
216
|
+
*
|
|
217
|
+
* If the `update` command was provided the resource will be updated, otherwise it will be replaced using the `create` command.
|
|
218
|
+
*
|
|
196
219
|
* Please see the resource documentation for examples.
|
|
197
220
|
*/
|
|
198
221
|
triggers?: pulumi.Input<any[]>;
|
|
199
222
|
/**
|
|
200
|
-
* The command to run
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
223
|
+
* The command to run when the resource is updated.
|
|
224
|
+
*
|
|
225
|
+
* If empty, the create command will be executed instead.
|
|
226
|
+
*
|
|
227
|
+
* Note that this command will not run if the resource's inputs are unchanged.
|
|
228
|
+
*
|
|
229
|
+
* Use `local.runOutput` if you need to run a command on every execution of your program.
|
|
230
|
+
*
|
|
231
|
+
* The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the `stdout` and `stderr` properties of the Command resource from previous create or update steps.
|
|
204
232
|
*/
|
|
205
233
|
update?: pulumi.Input<string>;
|
|
206
234
|
}
|
package/remote/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../remote/command.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../remote/command.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;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