From 3980eb2140dca5992e8744af6ee5fd9a53b2bc6c Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Fri, 28 Feb 2025 11:27:21 +0100 Subject: [PATCH] - --- cmd/root/bundle.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cmd/root/bundle.go b/cmd/root/bundle.go index b40803707..b4368b789 100644 --- a/cmd/root/bundle.go +++ b/cmd/root/bundle.go @@ -45,6 +45,17 @@ func targetFlagValue(cmd *cobra.Command) (string, bool) { 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) { // The command line flag takes precedence. flag := cmd.Flag("profile")