Skip to content

Ability to modify environment variables for the exec subcommand #37

Description

@psibi

I recently had this usecase where I wanted to store multiple similar keys but for test and staging environment:

amber encrypt GH_TOKEN_DEV redacted
amber encrypt GH_TOKEN_STAGING redacted

My usecase is that I want to execute this via amber exec. But at runtime, I want to change the environment variable appropriately before executing. In the above case, I want to change the environment variable to GH_TOKEN on the appropriate environment before executing.

I was thinking something like this:

amber exec --rename-env GH_TOKEN_DEV=GH_TOKEN -- gh release download

Any objections to have this feature ? I can volunteer to implement the same if there are no objections.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions