Trying to make a menu system with Typer #719
Unanswered
BruceEckel
asked this question in
Questions
Replies: 1 comment
-
Looks good so far. What would look more awesome would be that the help show multiple menus and than after selecting one of the menu only the options are shown. I might look deeper into that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I'm trying to create a menu-driven system using Typer. Ideally:
The example above does work, and you can see I've delved a bit into the
typer.Context
, but I'm wondering if I'm on the right path. It seems like there might be an easier/better approach and I would appreciate any pointers or ideas.Operating System
Linux, Windows, macOS
Operating System Details
Would definitely like this to be a cross-platform solution.
Typer Version
0.9.0
Python Version
Python 3.12.0
Additional Context
Seems like a solution/example that others might benefit from. If this can be figured out perhaps I'll blog about it and if you like that it could be incorporated somewhere into your docs.
Beta Was this translation helpful? Give feedback.
All reactions