Skip to content

Commit

Permalink
Added a command set env var, updated radix-api client
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Dec 28, 2023
1 parent e86263e commit 2e139e3
Show file tree
Hide file tree
Showing 104 changed files with 2,002 additions and 2,640 deletions.
10 changes: 7 additions & 3 deletions cmd/setEnvironmentVariable.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ import (
var setEnvironmentVariableCmd = &cobra.Command{
Use: "environment-variable",
Short: "Will set an environment variable",
Long: `Will set an environment variable`,
Long: `Will set an environment variable
Example:
rx set environment-variable --application your-application-name --environment test --component component-abc --variable LOG_LEVEL --value INFO
`,
RunE: func(cmd *cobra.Command, args []string) error {
appName, err := getAppNameFromConfigOrFromParameter(cmd, "application")
if err != nil {
Expand Down Expand Up @@ -115,8 +119,8 @@ func isComponentVariableReconciled(apiClient *apiclient.Radixapi, appName, envir
env.Payload.ActiveDeployment.Components != nil {
for _, component := range env.Payload.ActiveDeployment.Components {
if *component.Name == componentName {
for _, variable := range component.Variables {
if variable == variableName {
for name := range component.Variables {
if name == variableName {
return true
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2e139e3

Please sign in to comment.