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
applyCmd.Flags().StringArrayVarP(&config.Global.Targets, "target", "t", []string{}, "Units and stack that will be applied. All others will not apply.")
destroyCmd.Flags().StringArrayVarP(&config.Global.Targets, "target", "t", []string{}, "Units and stack that will be destroyed. All others will not destroy.")
Copy file name to clipboardExpand all lines: pkg/cmd/cdev/state.go
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ var stateUnlockCmd = &cobra.Command{
18
18
Use: "unlock",
19
19
Short: "Unlock state force",
20
20
Run: func(cmd*cobra.Command, args []string) {
21
+
config.Global.IgnoreState=true
21
22
project, err:=project.LoadProjectFull()
22
23
iferr!=nil {
23
24
log.Fatalf("Fatal error: state unlock: %v", err.Error())
@@ -35,7 +36,7 @@ var stateUpdateCmd = &cobra.Command{
35
36
Use: "update",
36
37
Short: "Updates the state of the current project to version %v. Make sure that the state of the project is consistent (run cdev apply with the old version before)",
37
38
Run: func(cmd*cobra.Command, args []string) {
38
-
config.Global.NotLoadState=true
39
+
config.Global.IgnoreState=true
39
40
project, err:=project.LoadProjectFull()
40
41
iferr!=nil {
41
42
log.Fatalf("Fatal error: state update: %v", err.Error())
@@ -61,7 +62,7 @@ var statePullCmd = &cobra.Command{
61
62
Use: "pull",
62
63
Short: "Downloads the remote state",
63
64
Run: func(cmd*cobra.Command, args []string) {
64
-
config.Global.NotLoadState=true
65
+
config.Global.IgnoreState=true
65
66
project, err:=project.LoadProjectFull()
66
67
iferr!=nil {
67
68
log.Fatalf("Fatal error: state pull: %v", err.Error())
0 commit comments