diff --git a/plugins/components/commandcomp.go b/plugins/components/commandcomp.go index e7401053a..361f9533c 100644 --- a/plugins/components/commandcomp.go +++ b/plugins/components/commandcomp.go @@ -60,6 +60,10 @@ func (c *Context) GetStringFlagValue(flagName string) string { return c.stringFlags[flagName] } +func (c *Context) AddStringFlag(key, value string) { + c.stringFlags[key] = value +} + func (c *Context) GetIntFlagValue(flagName string) (value int, err error) { parsed, err := strconv.ParseInt(c.GetStringFlagValue(flagName), 0, 64) if err != nil { diff --git a/utils/coreutils/coreconsts.go b/utils/coreutils/coreconsts.go index 9e83bc8b0..541d1feb0 100644 --- a/utils/coreutils/coreconsts.go +++ b/utils/coreutils/coreconsts.go @@ -67,6 +67,8 @@ var ( BuildName = "JFROG_CLI_BUILD_NAME" BuildNumber = "JFROG_CLI_BUILD_NUMBER" Project = "JFROG_CLI_BUILD_PROJECT" + SigningKey = "JFROG_CLI_SIGNING_KEY" + KeyAlias = "JFROG_CLI_KEY_ALIAS" //#nosec G101 EncryptionKey = "JFROG_CLI_ENCRYPTION_KEY" )