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

main,README: improve docs around --progress #776

Merged
merged 4 commits into from
Jan 8, 2025
Merged

Conversation

mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Jan 6, 2025

This PR adds some missing documentation around the new --progress switch. This hopefully helps with the questions/uncertainty raised in e.g. #765

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
achilleas-k
achilleas-k previously approved these changes Jan 6, 2025
@achilleas-k achilleas-k enabled auto-merge January 6, 2025 13:16
ondrejbudai
ondrejbudai previously approved these changes Jan 6, 2025
Copy link
Member

@ondrejbudai ondrejbudai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this, thanks! :)

mvo5 added 4 commits January 7, 2025 13:37
This commit adds the two most useful progress types (as of today)
to the help string of `--progress`: plain and term.

This should make the usage a bit more discoverable.
This commit adds the missing documentation for `--progress` in the
README. Not having this lead to some confusion, e.g. in questions
in osbuild#765 that
a better README would have avoided. Hopefully this answers the
questions :)
Previously an empty string in `--progress` meant to "auto-select".
But that is not super intuitive so this commit makes it explicit
using "auto".

Thanks to Achilleas for the suggestion.
This commit renames the "plain" progress to "verbose" progress. The
new name is closer to what the intention of the this progress is
and easier for the users to understand.

Thanks to Ondrej for the suggestion.
@mvo5 mvo5 dismissed stale reviews from ondrejbudai and achilleas-k via c464069 January 7, 2025 13:42
@mvo5
Copy link
Collaborator Author

mvo5 commented Jan 7, 2025

Sorry, had to force push to fix a test failure, please re-review.

Copy link
Member

@ondrejbudai ondrejbudai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@achilleas-k achilleas-k added this pull request to the merge queue Jan 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jan 8, 2025
@mvo5 mvo5 added this pull request to the merge queue Jan 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 8, 2025
@mvo5 mvo5 added this pull request to the merge queue Jan 8, 2025
Merged via the queue into osbuild:main with commit 1754664 Jan 8, 2025
8 of 10 checks passed
mvo5 added a commit to mvo5/bootc-image-builder that referenced this pull request Jan 9, 2025
This commit adds `--verbose,-v` which will increase the verbosity
of logrus and also switch the --progress to "verbose". This is
addressing the feedback we got in
osbuild#765
and a followup for osbuild#776

The new `-v` clashes unfortunately with cobras default for version,
so there is no single dash flag for version anymore. Most unix tools
(e.g. cp,rsync,mv,curl,ssh,tar) use "-v" for "--verbose" so IMHO we
should follow suite. Unfortuantely there is no consistency in linux,
e.g. git,gcc are counter examples where it means version). I would
still go with -v for verbose as ssh,tar,curl are probably used
more often to get verbose output.
mvo5 added a commit to mvo5/bootc-image-builder that referenced this pull request Jan 9, 2025
This commit adds `--verbose,-v` which will increase the verbosity
of logrus and also switch the --progress to "verbose". This is
addressing the feedback we got in
osbuild#765
and a followup for osbuild#776

The new `-v` clashes unfortunately with cobras default for version,
so there is no single dash flag for version anymore. Most unix tools
(e.g. cp,rsync,mv,curl,ssh,tar) use "-v" for "--verbose" so IMHO we
should follow suite. Unfortuantely there is no consistency in linux,
e.g. git,gcc are counter examples where it means version). I would
still go with -v for verbose as ssh,tar,curl are probably used
more often to get verbose output.
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.

3 participants