Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: automatic environment variable matching to flags #45

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

bketelsen
Copy link
Member

If applied, this patch will automatically set viper flag values to matching environment variables when they have the APX_ prefix.

ex:
APX_AUR=true apx list will run apx list in the arch container without specifying the --aur flag manually.

Perfect when used in combination with direnv to use a specific container for a specific project directory.

requires flag values be read using viper.GetXX().

@bketelsen
Copy link
Member Author

fixes #44

@mirkobrombin mirkobrombin merged commit 71dfb65 into Vanilla-OS:main Jan 3, 2023
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.

None yet

2 participants