-
Notifications
You must be signed in to change notification settings - Fork 54
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
Make click
optional; support manual definition of schemas.
#43
Comments
It would be fitting IMO to have some kind of a |
That's not relevant to this issue. This issue is about making Trogon work well without click. |
Here is a POC of Trogon working with argparse: |
This would be very interesting and greatly broaden the reach of Trogon, given the popularity of argparse. Of course assuming that the implementation would be a matter of adding a few lines into your code. |
Here's my fork that works with argparse: https://github.com/fresh2dev/argparse-tui |
Today, Trogon only supports
click
, and click-specific code is exists throughout Trogon. Frankly, Trogon is too amazing to be specific to click.In addition to the reverse-engineering ("introspection") method of building a Trogon TUI from an existing click CLI, Trogon should offer an interface for any library to integrate Trogon by manually building and providing the command-schemas to Trogon. This way, Trogon could function without
click
, and any CLI app would have the ability to build and display a Trogon TUI. This would also lessen the burden on Trogon development, since it would not be necessary for Trogon devs to build "introspector" logic for each desired library, but would instead give devs of those libraries a path to D.I.Y. Trogon integration.Instead of Trogon devs working to reverse-engineer and support this library and others, the developers of each library should have a path to integrate Trogon themselves.
Related issue: #5
The text was updated successfully, but these errors were encountered: