mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
55a9368ef2
commit
3980eb2140
|
@ -45,6 +45,17 @@ func targetFlagValue(cmd *cobra.Command) (string, bool) {
|
||||||
return "", false
|
return "", false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// TODO CONTINUE: Fixing the source here. Might not need to do this for the flag
|
||||||
|
// as the environment variable seems to be the only problem.
|
||||||
|
// Note that this should be a separate PR.
|
||||||
|
type profileSource string
|
||||||
|
|
||||||
|
const (
|
||||||
|
profileSourceFlag profileSource = "flag"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
func getProfile(cmd *cobra.Command) (value string) {
|
func getProfile(cmd *cobra.Command) (value string) {
|
||||||
// The command line flag takes precedence.
|
// The command line flag takes precedence.
|
||||||
flag := cmd.Flag("profile")
|
flag := cmd.Flag("profile")
|
||||||
|
|
Loading…
Reference in New Issue