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

update shpc show output stream and support --limit #647

Merged
merged 1 commit into from
May 4, 2023

Conversation

vsoch
Copy link
Member

@vsoch vsoch commented May 2, 2023

This will close #646 and close #645

"--limit",
help="set a limit for the number to show",
default=None,
type=int,
Copy link

Choose a reason for hiding this comment

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

i guess you may want to enforce to positive number and not just any number to avoid passing value like --limit 0 or negative value

Copy link
Member Author

Choose a reason for hiding this comment

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

This actually isn’t needed because if the user sets a hairbrained limit like that, the loop should just quit immediately.

Choose a reason for hiding this comment

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

i see

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch merged commit 52caaac into main May 4, 2023
11 checks passed
@vsoch vsoch deleted the update/output-stream branch May 4, 2023 22:26
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.

limit output of shpc show running shpc show with pipe command leads to exception
2 participants