@@ -4,10 +4,11 @@ Reference: Introspection - An option to take variables in SPK scaffold
4
4
command<br > Authors: Andre Briggs, Yvonne Radsmikham, Nathaniel Rose, Dennis
5
5
Seah
6
6
7
- | Revision | Date | Author | Remarks |
8
- | -------: | ------------ | ----------- | ------------------------------------------------- |
9
- | 0.1 | Mar-07, 2020 | Dennis Seah | Initial Draft |
10
- | 0.2 | Mar-09, 2020 | Dennis Seah | Incorporated comments from Nate, Yvonne and Andre |
7
+ | Revision | Date | Author | Remarks |
8
+ | -------: | ------------ | ----------- | ------------------------------------------------------ |
9
+ | 0.1 | Mar-07, 2020 | Dennis Seah | Initial Draft |
10
+ | 0.2 | Mar-09, 2020 | Dennis Seah | Incorporated comments from Nate, Yvonne and Andre |
11
+ | 1.0 | Mar-11, 2020 | Dennis Seah | Added information on support YAML and JSON file format |
11
12
12
13
## 1. Overview
13
14
@@ -34,13 +35,25 @@ has 4 options (`--name`, `--source`, `--version` and `--template`). We shall
34
35
introduce a new option ` -f ` , ` --file ` which allows user to specify a file that
35
36
contains values for these variables.
36
37
37
- The format of this file is ` key=value ` . E.g.
38
+ The format of the file can be YAML or JSON. The command line tool will detect
39
+ the format automatically. Example of YAML file is
38
40
39
41
```
40
- address_space=10.10.0.0/16
41
- agent_vm_count=4
42
- agent_vm_size=Standard_D2s_v3
43
- cluster_name=discovery-service-west
42
+ address_space: 10.10.0.0/16
43
+ agent_vm_count: 4
44
+ agent_vm_size: Standard_D2s_v3
45
+ cluster_name: discovery-service-west
46
+ ```
47
+
48
+ And example of JSON file is
49
+
50
+ ```
51
+ {
52
+ "address_space": "10.10.0.0/16",
53
+ "agent_vm_count": 4,
54
+ "agent_vm_size": "Standard_D2s_v3",
55
+ "cluster_name": "discovery-service-west"
56
+ }
44
57
```
45
58
46
59
leading and trailing spaces should be trimmed. E.g. ` address_space=10.10.0.0/16 `
0 commit comments