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
## Changes
1. Changed plan output to be printed from stderr (cmdio.LogString) to
stdout (fmt.Printf/fmt.Println)
2. Added summary line with counts: Plan: X to add, Y to change, Z to
delete
Example output:
```
create job.my_project_job
delete job.sample_job
create pipeline.my_project_pipeline
delete pipeline.sample_etl
Plan: 2 to add, 0 to change, 2 to delete
```
## Why
Improving the output before making the command publicly available
## Tests
Updated acceptance test output
Existing acceptance test updated and passing
<!-- If your PR needs to be included in the release notes for next release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
Copy file name to clipboardExpand all lines: acceptance/bundle/lifecycle/prevent-destroy/out.direct-exp.txt
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ Exit code (musterr): 1
9
9
>>> errcode [CLI] bundle plan
10
10
recreate pipelines.my_pipelines
11
11
12
+
Plan: 1 to add, 0 to change, 1 to delete, 1 unchanged
13
+
12
14
>>> musterr [CLI] bundle deploy
13
15
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/prevent-destroy/default/files...
14
16
Error: resources.pipelines.my_pipelines has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for resources.pipelines.my_pipelines
@@ -20,6 +22,8 @@ Exit code (musterr): 1
20
22
recreate pipelines.my_pipelines
21
23
recreate schemas.my_schema
22
24
25
+
Plan: 2 to add, 0 to change, 2 to delete, 0 unchanged
26
+
23
27
>>> musterr [CLI] bundle deploy
24
28
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/prevent-destroy/default/files...
25
29
Error: resources.pipelines.my_pipelines has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for resources.pipelines.my_pipelines
@@ -32,6 +36,8 @@ Exit code (musterr): 1
32
36
recreate pipelines.my_pipelines
33
37
recreate schemas.my_schema
34
38
39
+
Plan: 2 to add, 0 to change, 2 to delete, 0 unchanged
40
+
35
41
>>> [CLI] bundle deploy --auto-approve
36
42
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/prevent-destroy/default/files...
37
43
@@ -51,6 +57,8 @@ Deployment complete!
51
57
delete pipelines.my_pipelines
52
58
delete schemas.my_schema
53
59
60
+
Plan: 0 to add, 0 to change, 2 to delete, 0 unchanged
61
+
54
62
>>> [CLI] bundle deploy --auto-approve
55
63
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/prevent-destroy/default/files...
0 commit comments