-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathenv.dsc.resource.json
More file actions
73 lines (73 loc) · 1.48 KB
/
env.dsc.resource.json
File metadata and controls
73 lines (73 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
"description": "Manages user/machine environment variables in Windows.",
"type": "Sample.Windows/EnvironmentVariable",
"version": "0.0.1",
"get": {
"executable": "powershell",
"args": [
"-NoLogo",
"-NonInteractive",
"-NoProfile",
"-Command",
"$input | env.resource.ps1 -Operation get"
],
"input": "stdin"
},
"set": {
"executable": "powershell",
"args": [
"-NoLogo",
"-NonInteractive",
"-NoProfile",
"-Command",
"$input | env.resource.ps1 -Operation set"
],
"input": "stdin"
},
"delete": {
"executable": "powershell",
"args": [
"-NoLogo",
"-NonInteractive",
"-NoProfile",
"-Command",
"$input | env.resource.ps1 -Operation delete"
],
"input": "stdin"
},
"exitCodes": {
"0": "Success",
"1": "Error",
"2": "Invalid parameters"
},
"schema": {
"embedded": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": [
"object",
"null"
],
"properties": {
"name": {
"type": "string",
"readOnly": true
},
"value": {
"type": [
"string",
"null"
],
"readOnly": true
},
"scope": {
"type": [
"string",
"null"
],
"readOnly": true
}
}
}
}
}