Skip to content

Commit 3e12a85

Browse files
committed
Added method to ctx and env vars to const
1 parent b6efb65 commit 3e12a85

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

plugins/components/commandcomp.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ func (c *Context) GetStringFlagValue(flagName string) string {
6060
return c.stringFlags[flagName]
6161
}
6262

63+
func (c *Context) AddStringFlag(key, value string) {
64+
c.stringFlags[key] = value
65+
}
66+
6367
func (c *Context) GetIntFlagValue(flagName string) (value int, err error) {
6468
parsed, err := strconv.ParseInt(c.GetStringFlagValue(flagName), 0, 64)
6569
if err != nil {

utils/coreutils/coreconsts.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ var (
6767
BuildName = "JFROG_CLI_BUILD_NAME"
6868
BuildNumber = "JFROG_CLI_BUILD_NUMBER"
6969
Project = "JFROG_CLI_BUILD_PROJECT"
70+
SigningKey = "JFROG_CLI_SIGNING_KEY"
71+
KeyAlias = "JFROG_CLI_KEY_ALIAS"
7072
//#nosec G101
7173
EncryptionKey = "JFROG_CLI_ENCRYPTION_KEY"
7274
)

0 commit comments

Comments
 (0)