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

Commit

Permalink
Added example for unbuild (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
glooms committed Jun 19, 2019
1 parent 6544664 commit 3c14b19
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ var generateSpecCmd = &cobra.Command{
Hidden: true,

Run: func(ccmd *cobra.Command, args []string) {
fmt.Println("Generating specification")
var jsonData []byte
spec := spec{
Clispec: "0.1.0",
Expand Down
7 changes: 4 additions & 3 deletions cmd/unbuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ var unbuildCmd = withLocalFlags(&cobra.Command{
Args: cobra.ExactArgs(0),
Short: "Split up an existing app into separate json and yaml files",
Long: `Extracts generic objects, dimensions, measures, variables, reload script and connections from an app in an engine into separate json and yaml files.
In addition to the resources from the app a corectl.yml configuration file is generated that binds them all together.
Passwords in the connection definitions can not be exported from the app and hence need to be handled manually.
In addition to the resources from the app a corectl.yml configuration file is generated that binds them all together.
Passwords in the connection definitions can not be exported from the app and hence need to be handled manually.
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).
`,
Example: `corectl unbuild`,
Example: `corectl unbuild
corectl unbuild --app APP-ID`,
Annotations: map[string]string{
"command_category": "build",
"x-qlik-stability": "experimental",
Expand Down
5 changes: 3 additions & 2 deletions docs/corectl_unbuild.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Split up an existing app into separate json and yaml files
### Synopsis

Extracts generic objects, dimensions, measures, variables, reload script and connections from an app in an engine into separate json and yaml files.
In addition to the resources from the app a corectl.yml configuration file is generated that binds them all together.
Passwords in the connection definitions can not be exported from the app and hence need to be handled manually.
In addition to the resources from the app a corectl.yml configuration file is generated that binds them all together.
Passwords in the connection definitions can not be exported from the app and hence need to be handled manually.
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).


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

```
corectl unbuild
corectl unbuild --app APP-ID
```

### Options
Expand Down
2 changes: 1 addition & 1 deletion docs/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@
"description": "Print tables for the data model in an app"
},
"unbuild": {
"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",
"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",
"x-qlik-stability": "experimental",
"flags": {
"dir": {
Expand Down

0 comments on commit 3c14b19

Please sign in to comment.