This commit is contained in:
Shreyas Goenka 2025-02-28 11:27:21 +01:00
parent 55a9368ef2
commit 3980eb2140
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 11 additions and 0 deletions

View File

@ -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")