Skip to content

Commit a6db74b

Browse files
authored
Merge pull request #601 from SteveL-MSFT/file-stdin
Change how to pass STDIN input via `--file`, rename other args
2 parents b52b5cb + 8a405c9 commit a6db74b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+440
-398
lines changed

archive/registry/registry.dsc.resource.json

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,36 @@
1111
"executable": "registry",
1212
"args": [
1313
"config",
14-
"get"
15-
],
16-
"input": "stdin"
14+
"get",
15+
{
16+
"jsonInputArg": "--input",
17+
"mandatory": true
18+
}
19+
]
1720
},
1821
"set": {
1922
"executable": "registry",
2023
"args": [
2124
"config",
22-
"set"
25+
"set",
26+
{
27+
"jsonInputArg": "--input",
28+
"mandatory": true
29+
}
2330
],
24-
"input": "stdin",
2531
"implementsPretest": true,
2632
"return": "state"
2733
},
2834
"test": {
2935
"executable": "registry",
3036
"args": [
3137
"config",
32-
"test"
38+
"test",
39+
{
40+
"jsonInputArg": "--input",
41+
"mandatory": true
42+
}
3343
],
34-
"input": "stdin",
3544
"return": "state"
3645
},
3746
"exitCodes": {

dsc/assertion.dsc.resource.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
"config",
1313
"--as-group",
1414
"test",
15-
"--as-get"
16-
],
17-
"input": "stdin"
15+
"--as-get",
16+
{
17+
"jsonInputArg": "--input",
18+
"mandatory": true
19+
}
20+
]
1821
},
1922
"set": {
2023
"executable": "dsc",
@@ -23,9 +26,12 @@
2326
"pass-through",
2427
"config",
2528
"--as-group",
26-
"test"
29+
"test",
30+
{
31+
"jsonInputArg": "--input",
32+
"mandatory": true
33+
}
2734
],
28-
"input": "stdin",
2935
"implementsPretest": true,
3036
"return": "state"
3137
},
@@ -37,9 +43,12 @@
3743
"config",
3844
"--as-group",
3945
"test",
40-
"--as-config"
46+
"--as-config",
47+
{
48+
"jsonInputArg": "--input",
49+
"mandatory": true
50+
}
4151
],
42-
"input": "stdin",
4352
"return": "state"
4453
},
4554
"exitCodes": {
@@ -58,8 +67,11 @@
5867
"--trace-format",
5968
"pass-through",
6069
"config",
61-
"validate"
62-
],
63-
"input": "stdin"
70+
"validate",
71+
{
72+
"jsonInputArg": "--input",
73+
"mandatory": true
74+
}
75+
]
6476
}
6577
}

dsc/group.dsc.resource.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
"pass-through",
1212
"config",
1313
"--as-group",
14-
"get"
15-
],
16-
"input": "stdin"
14+
"get",
15+
{
16+
"jsonInputArg": "--input",
17+
"mandatory": true
18+
}
19+
]
1720
},
1821
"set": {
1922
"executable": "dsc",
@@ -22,9 +25,12 @@
2225
"pass-through",
2326
"config",
2427
"--as-group",
25-
"set"
28+
"set",
29+
{
30+
"jsonInputArg": "--input",
31+
"mandatory": true
32+
}
2633
],
27-
"input": "stdin",
2834
"implementsPretest": true,
2935
"return": "state"
3036
},
@@ -35,9 +41,12 @@
3541
"pass-through",
3642
"config",
3743
"--as-group",
38-
"test"
44+
"test",
45+
{
46+
"jsonInputArg": "--input",
47+
"mandatory": true
48+
}
3949
],
40-
"input": "stdin",
4150
"return": "state"
4251
},
4352
"exitCodes": {
@@ -56,8 +65,11 @@
5665
"--trace-format",
5766
"pass-through",
5867
"config",
59-
"validate"
60-
],
61-
"input": "stdin"
68+
"validate",
69+
{
70+
"jsonInputArg": "--input",
71+
"mandatory": true
72+
}
73+
]
6274
}
6375
}

dsc/include.dsc.resource.json

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
"config",
1313
"--as-include",
1414
"--as-group",
15-
"get"
16-
],
17-
"input": "stdin"
15+
"get",
16+
{
17+
"jsonInputArg": "--input",
18+
"mandatory": true
19+
}
20+
]
1821
},
1922
"set": {
2023
"executable": "dsc",
@@ -24,9 +27,12 @@
2427
"config",
2528
"--as-include",
2629
"--as-group",
27-
"set"
30+
"set",
31+
{
32+
"jsonInputArg": "--input",
33+
"mandatory": true
34+
}
2835
],
29-
"input": "stdin",
3036
"implementsPretest": true,
3137
"return": "state"
3238
},
@@ -38,9 +44,12 @@
3844
"config",
3945
"--as-include",
4046
"--as-group",
41-
"test"
42-
],
43-
"input": "stdin"
47+
"test",
48+
{
49+
"jsonInputArg": "--input",
50+
"mandatory": true
51+
}
52+
]
4453
},
4554
"exitCodes": {
4655
"0": "Success",
@@ -58,8 +67,11 @@
5867
"pass-through",
5968
"config",
6069
"--as-include",
61-
"validate"
62-
],
63-
"input": "stdin"
70+
"validate",
71+
{
72+
"jsonInputArg": "--input",
73+
"mandatory": true
74+
}
75+
]
6476
}
6577
}

dsc/parallel.dsc.resource.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
"config",
1313
"--parallel",
1414
"--as-group",
15-
"get"
16-
],
17-
"input": "stdin"
15+
"get",
16+
{
17+
"jsonInputArg": "--input",
18+
"mandatory": true
19+
}
20+
]
1821
},
1922
"set": {
2023
"executable": "dsc",
@@ -24,9 +27,12 @@
2427
"config",
2528
"--parallel",
2629
"--as-group",
27-
"set"
30+
"set",
31+
{
32+
"jsonInputArg": "--input",
33+
"mandatory": true
34+
}
2835
],
29-
"input": "stdin",
3036
"implementsPretest": true,
3137
"return": "state"
3238
},
@@ -38,9 +44,12 @@
3844
"config",
3945
"--parallel",
4046
"--as-group",
41-
"test"
47+
"test",
48+
{
49+
"jsonInputArg": "--input",
50+
"mandatory": true
51+
}
4252
],
43-
"input": "stdin",
4453
"return": "state"
4554
},
4655
"exitCodes": {
@@ -59,8 +68,11 @@
5968
"--trace-format",
6069
"pass-through",
6170
"config",
62-
"validate"
63-
],
64-
"input": "stdin"
71+
"validate",
72+
{
73+
"jsonInputArg": "--input",
74+
"mandatory": true
75+
}
76+
]
6577
}
6678
}

0 commit comments

Comments
 (0)