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

all: properly handle env vars and configs in all commands #1328

Merged
merged 5 commits into from
May 1, 2024

Conversation

xarvex
Copy link
Contributor

@xarvex xarvex commented Apr 5, 2024

While I was adding an option to quiet the output (which I will make a PR for after this), I noticed that not all commands handled environment variable options and/or configs, even though they use options that would be affected such as non_interactive and verbose.
There are as well certain tweaks for consistency and readability, please see commits for specifics on that. I have highlighted the important details here:

Environment Variables

DBX_NON_INTERACTIVE was added in 7203563, but has not been added to new files since then.
DBX_VERBOSE was added in 78b3319, but was not handled in all files that use verbose as an option.

Configs

Were not being processed in all commands, despite being relevant to them.

Affected

Not counting minor tweaks.

  • distrobox-assemble
  • distrobox-ephemeral
  • distrobox-export
  • distrobox-host-exec
  • distrobox-init

xarvex and others added 5 commits April 4, 2024 21:31
DBX_NON_INTERACTIVE was added in 7203563, but has not been added to new
files since then.
DBX_VERBOSE was added in 78b3319, but was not handled in all files that
use verbose as an option.
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
@89luca89
Copy link
Owner

89luca89 commented May 1, 2024

Thanks a lot @xarvex! Not in all places this is needed (see export,host-exec,init)

Reverted that for those, and keeping for all the others :) thanks!

@89luca89 89luca89 merged commit c8fcb12 into 89luca89:main May 1, 2024
8 checks passed
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