Commit c914ca5 1 parent a7fc513 commit c914ca5 Copy full SHA for c914ca5
File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ func InitDnsCmd(parentCmd *cobra.Command) {
56
56
func runDnsCommand (failback bool ) {
57
57
pFlags := getPersistentFlags ()
58
58
59
+ if pFlags .readOnlyMode {
60
+ fmt .Println ("-- Read-only mode enabled --" )
61
+ }
62
+
59
63
d := newDnsCommand (pFlags , failback )
60
64
61
65
d .setDnsRecordValues (pFlags .idp )
Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ func InitFailoverCmd(parentCmd *cobra.Command) {
65
65
func runFailover () {
66
66
pFlags := getPersistentFlags ()
67
67
68
+ if pFlags .readOnlyMode {
69
+ fmt .Println ("-- Read-only mode enabled --" )
70
+ }
71
+
68
72
lib .SetToken (pFlags .tfcToken )
69
73
70
74
answer := simplePrompt (`Please confirm activation of failover mode. Type "yes" to continue.` )
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ func InitSetupCmd(parentCmd *cobra.Command) {
29
29
func runSetup () {
30
30
pFlags := getPersistentFlags ()
31
31
32
+ if pFlags .readOnlyMode {
33
+ fmt .Println ("-- Read-only mode enabled --" )
34
+ }
35
+
32
36
lib .SetToken (pFlags .tfcToken )
33
37
34
38
createSecondaryWorkspaces (pFlags )
You can’t perform that action at this time.
0 commit comments