Coverage for tests / assets / hidden_commands.py: 100%
12 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-11-18 11:12 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-11-18 11:12 +0000
1import typer 1abcdefghij
3app = typer.Typer() 1abcdefghij
6@app.command() 1abcdefghij
7def visible(): 1abcdefghij
8 """Visible command."""
11@app.command(hidden=True) 1abcdefghij
12def hidden_decorated(): 1abcdefghij
13 """Hidden via @app.command(hidden=True)."""
16def hidden_var(): 1abcdefghij
17 """Hidden via app.command(name, hidden=True)(fn)."""
20app.command("hidden-var", hidden=True)(hidden_var) 1abcdefghij
22hidden_subgroup = typer.Typer(hidden=True) 1abcdefghij
25@hidden_subgroup.command() 1abcdefghij
26def sub(): 1abcdefghij
27 """Hidden subgroup command."""
30app.add_typer(hidden_subgroup, name="hidden-subgroup") 1abcdefghij