-
Notifications
You must be signed in to change notification settings - Fork 94
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
cli: pager functionality #3468
Comments
Click mentions something about pager method. I wonder if that can be used with cylc-flow commands now? http://click.palletsprojects.com/en/5.x/utils/ (it looks like there is some colorama integration too...) |
Good spot! |
As I recall paging wasn't working (or wasn't implemented) in sub-commands anyway, before the click PR. Was it only working in the top level |
It worked fine but only for |
Ah, that explains it! I guess I never use |
(I don't think |
I think most programs with subcommands I've seen work the other way as you said above, |
e.g. |
Oh, good example, didn't know |
Still, we'll want paging for the "more standard" 😁 |
Attempt after #3525. |
The old pager functionality wasn't migrated to the new Python API in #3413.
All
help
pages should be paged e.g.cylc --help
,cylc run --help
, etc.This may be slightly tricky now that the CLI has migrated away from Bash, the nice easy
help | ${PAGER:-less}
solution might not be an option any more.subprocess.PIPE
might be one option.Using a native shell pager would be preferable so users can set their favorite pager in the conventional way.
Pull requests welcome!
The text was updated successfully, but these errors were encountered: