Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit 3c14b19

Browse files
authored
Added example for unbuild (#329)
1 parent 6544664 commit 3c14b19

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎cmd/generate.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ var generateSpecCmd = &cobra.Command{
102102
Hidden: true,
103103

104104
Run: func(ccmd *cobra.Command, args []string) {
105+
fmt.Println("Generating specification")
105106
var jsonData []byte
106107
spec := spec{
107108
Clispec: "0.1.0",

‎cmd/unbuild.go‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ var unbuildCmd = withLocalFlags(&cobra.Command{
1212
Args: cobra.ExactArgs(0),
1313
Short: "Split up an existing app into separate json and yaml files",
1414
Long: `Extracts generic objects, dimensions, measures, variables, reload script and connections from an app in an engine into separate json and yaml files.
15-
In addition to the resources from the app a corectl.yml configuration file is generated that binds them all together.
16-
Passwords in the connection definitions can not be exported from the app and hence need to be handled manually.
15+
In addition to the resources from the app a corectl.yml configuration file is generated that binds them all together.
16+
Passwords in the connection definitions can not be exported from the app and hence need to be handled manually.
1717
Generic Object trees (e.g. Qlik Sense sheets) are exported as a a full property tree which means that child objects are found inside the parent´s json (the qChildren array).
1818
`,
19-
Example: `corectl unbuild`,
19+
Example: `corectl unbuild
20+
corectl unbuild --app APP-ID`,
2021
Annotations: map[string]string{
2122
"command_category": "build",
2223
"x-qlik-stability": "experimental",

‎docs/corectl_unbuild.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Split up an existing app into separate json and yaml files
55
### Synopsis
66

77
Extracts generic objects, dimensions, measures, variables, reload script and connections from an app in an engine into separate json and yaml files.
8-
In addition to the resources from the app a corectl.yml configuration file is generated that binds them all together.
9-
Passwords in the connection definitions can not be exported from the app and hence need to be handled manually.
8+
In addition to the resources from the app a corectl.yml configuration file is generated that binds them all together.
9+
Passwords in the connection definitions can not be exported from the app and hence need to be handled manually.
1010
Generic Object trees (e.g. Qlik Sense sheets) are exported as a a full property tree which means that child objects are found inside the parent´s json (the qChildren array).
1111

1212

@@ -18,6 +18,7 @@ corectl unbuild [flags]
1818

1919
```
2020
corectl unbuild
21+
corectl unbuild --app APP-ID
2122
```
2223

2324
### Options

‎docs/spec.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
"description": "Print tables for the data model in an app"
370370
},
371371
"unbuild": {
372-
"description": "Extracts generic objects, dimensions, measures, variables, reload script and connections from an app in an engine into separate json and yaml files. \nIn addition to the resources from the app a corectl.yml configuration file is generated that binds them all together. \nPasswords in the connection definitions can not be exported from the app and hence need to be handled manually. \nGeneric Object trees (e.g. Qlik Sense sheets) are exported as a a full property tree which means that child objects are found inside the parent´s json (the qChildren array). \n",
372+
"description": "Extracts generic objects, dimensions, measures, variables, reload script and connections from an app in an engine into separate json and yaml files. \nIn addition to the resources from the app a corectl.yml configuration file is generated that binds them all together.\nPasswords in the connection definitions can not be exported from the app and hence need to be handled manually.\nGeneric Object trees (e.g. Qlik Sense sheets) are exported as a a full property tree which means that child objects are found inside the parent´s json (the qChildren array). \n",
373373
"x-qlik-stability": "experimental",
374374
"flags": {
375375
"dir": {

0 commit comments

Comments
 (0)
⌂ 换网址