Skip to content

Read root group name from click group name #122

@ttimasdf

Description

@ttimasdf

trogon/trogon/introspect.py

Lines 174 to 177 in eaa9e68

if isinstance(app, click.Group):
root_cmd_name = CommandName("root")
data[root_cmd_name] = process_command(root_cmd_name, app)
app = data[root_cmd_name]

use value of name from click.group for the name of group node in TUI instead of hardcoded root

@tui()
@click.group("my_group")
def main():
  ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions