databricks-cli/cmd/bundle/variables.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
304 B
Go
Raw Normal View History

package bundle
import (
"github.com/spf13/cobra"
)
2025-03-09 20:17:56 +00:00
func initVariableFlag(cmd *cobra.Command, hidden bool) {
cmd.PersistentFlags().StringSlice("var", []string{}, `set values for variables defined in bundle config. Example: --var="foo=bar"`)
2025-03-09 20:17:56 +00:00
if hidden {
cmd.PersistentFlags().MarkHidden("var")
}
}