Skip to content

Conversation

@martijnhoekstra
Copy link

@martijnhoekstra martijnhoekstra commented Mar 22, 2025

in powershelll, it's useful to output directly to current shell variables, which setx doesn't do.

This MR adds an output for powershell environments in the format of $Env:{varname} = "{value}". Evaluating this will bring the variable into the current shell session.

this also allows to eval the whole thing into the current environment, by okta-aws-cli web -b | invoke-expression, which is morally equivalent to the bash approach with $(okta-aws-cli web -b)

in powershelll, it's useful to output directly to current shell variables, which setx doesn't do

this also allows to eval in the current environment, by okta-aws-cli web -b | invoke-expression
morally equivalent to the bash approach with diff(okta-aws-cli web -b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant