Skip to content

Commit

Permalink
feat: persistent flag
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 committed Nov 26, 2024
1 parent 83a8fae commit 62f7015
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,7 @@ func init() {
LetsEncryptCommand(),
TerraformCommand(),
)

rootCmd.PersistentFlags().BoolVar(&ciFlag, "ci", false, "if running kubefirst in ci, set this flag to disable interactive features")

}

Check failure on line 74 in cmd/root.go

View workflow job for this annotation

GitHub Actions / build

unnecessary trailing newline (whitespace)
2 changes: 1 addition & 1 deletion internal/progress/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewModel() progressModel {
}
}

func DiableBubbleTeaExecution() {
func DisableBubbleTeaExecution() {
CanRunBubbleTea = false
}

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ func main() {
progress.Progress.Run()
} else {
cmd.Execute()
progress.DiableBubbleTeaExecution()
progress.DisableBubbleTeaExecution()
}
}

0 comments on commit 62f7015

Please sign in to comment.