mirror of https://github.com/databricks/cli.git
13 lines
304 B
Go
13 lines
304 B
Go
package bundle
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func initVariableFlag(cmd *cobra.Command, hidden bool) {
|
|
cmd.PersistentFlags().StringSlice("var", []string{}, `set values for variables defined in bundle config. Example: --var="foo=bar"`)
|
|
if hidden {
|
|
cmd.PersistentFlags().MarkHidden("var")
|
|
}
|
|
}
|