You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ref-concerto-cli.md
+35-37Lines changed: 35 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ Commands:
21
21
concerto get save local copies of external model dependencies
22
22
23
23
Options:
24
-
--version Show version number [boolean]
25
-
--verbose, -v [default: false]
26
-
--help Show help [boolean]
24
+
--version Show version number [boolean]
25
+
-v, --verbose [default: false]
26
+
--help Show help [boolean]
27
27
```
28
28
29
29
## concerto validate
@@ -35,33 +35,33 @@ concerto validate
35
35
validate JSON against model files
36
36
37
37
Options:
38
-
--version Show version number [boolean]
39
-
--verbose, -v [default: false]
40
-
--help Show help [boolean]
41
-
--sample sample JSON to validate [string]
42
-
--ctoSystem system model to be used [string]
43
-
--ctoFiles array of CTO files [array]
44
-
--offline do not resolve external models [boolean] [default: false]
38
+
--version Show version number [boolean]
39
+
-v, --verbose [default: false]
40
+
--help Show help [boolean]
41
+
--input JSON to validate [string]
42
+
--model array of concerto (cto) model files [array]
43
+
--utcOffset set UTC offset [number]
44
+
--offline do not resolve external models [boolean] [default: false]
45
+
--functional new validation API [boolean] [default: false]
46
+
--ergo validation and emit for Ergo [boolean] [default: false]
45
47
```
46
48
47
49
### Example
48
50
For example, using the `validate` command to check the sample `request.json` file from a [Late Delivery and Penalty](https://github.com/accordproject/cicero-template-library/tree/master/src/latedeliveryandpenalty) clause:
For example, using the `compile` command to export the `clause.cto` file from a [Late Delivery and Penalty](https://github.com/accordproject/cicero-template-library/tree/master/src/latedeliveryandpenalty) clause into `Go Lang` format:
97
96
98
97
```md
99
98
cd ./model
100
-
concerto compile --ctoFiles clause.cto --target Go
99
+
concerto compile --model clause.cto --target Go
101
100
```
102
101
103
102
returns:
@@ -114,19 +113,18 @@ concerto get
114
113
save local copies of external model dependencies
115
114
116
115
Options:
117
-
--version Show version number [boolean]
118
-
--verbose, -v [default: false]
119
-
--help Show help [boolean]
120
-
--ctoFiles array of local CTO files [array] [required]
For example, using the `get` command to get the external models in the `clause.cto` file from a [Late Delivery and Penalty](https://github.com/accordproject/cicero-template-library/tree/master/src/latedeliveryandpenalty) clause:
0 commit comments