Skip to content

Commit

Permalink
Add missing names
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Nov 1, 2024
1 parent 3a92fad commit c01e9e3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs_src/subcommands/name_help/tutorial002.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
app = typer.Typer()

users_app = typer.Typer()
app.add_typer(users_app)
app.add_typer(users_app, name="users")


@users_app.callback()
Expand Down
2 changes: 1 addition & 1 deletion docs_src/subcommands/name_help/tutorial003.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def users():


users_app = typer.Typer(callback=users)
app.add_typer(users_app)
app.add_typer(users_app, name="users")


@users_app.command()
Expand Down
2 changes: 1 addition & 1 deletion docs_src/subcommands/name_help/tutorial004.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def old_callback():


users_app = typer.Typer(callback=old_callback)
app.add_typer(users_app)
app.add_typer(users_app, name="users")


@users_app.callback()
Expand Down
2 changes: 1 addition & 1 deletion docs_src/subcommands/name_help/tutorial005.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def new_users():
"""


app.add_typer(users_app, callback=new_users)
app.add_typer(users_app, callback=new_users, name="users")


@users_app.callback()
Expand Down
2 changes: 1 addition & 1 deletion docs_src/subcommands/name_help/tutorial006.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def new_users():
"""


app.add_typer(users_app, callback=new_users)
app.add_typer(users_app, callback=new_users, name="users")


@users_app.callback()
Expand Down
2 changes: 1 addition & 1 deletion docs_src/subcommands/name_help/tutorial007.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def new_users():
"""


app.add_typer(users_app, callback=new_users)
app.add_typer(users_app, callback=new_users, name="users")


@users_app.callback("call-users", help="Help from callback for users.")
Expand Down

0 comments on commit c01e9e3

Please sign in to comment.