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

Feature request: customize command name and help text #2

Closed
simonw opened this issue May 21, 2023 · 2 comments
Closed

Feature request: customize command name and help text #2

simonw opened this issue May 21, 2023 · 2 comments

Comments

@simonw
Copy link
Contributor

simonw commented May 21, 2023

These are currently hard-coded here:

trogon/trogon/trogon.py

Lines 288 to 294 in b9ddd90

if isinstance(app, click.Group):
app.command(name="tui", help="Open Textual TUI.")(wrapped_tui)
else:
new_group = click.Group()
new_group.add_command(app)
new_group.command(name="tui", help="Open Textual TUI.")(wrapped_tui)
return new_group

I'd like the option to customize them, for example like this:

@tui(name="ui", help="Interactive UI for this tool")
@click.group()
def cli():
    ...
@willmcgugan
Copy link
Contributor

Yeah, I concur. We probably also want to customize how the TUI is launched. Some might prefer a --tui option rather than a subcommand.

@darrenburns
Copy link
Member

This was added in v0.5.0

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

No branches or pull requests

3 participants