Skip to content

Commit 5bc7416

Browse files
committed
minor doc howto tweaks to command ordering
1 parent bbe8be2 commit 5bc7416

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

doc/source/howto.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,12 +682,20 @@ like below, but they must extend from django-typer's classes:
682682
:prog: ./manage.py order
683683
:width: 80
684684

685+
.. typer:: tests.apps.howto.management.commands.order_default.Command:typer_app:d
686+
:prog: ./manage.py order d
687+
:width: 80
688+
685689
.. tab:: Alphabetized
686690

687691
.. typer:: tests.apps.howto.management.commands.order.Command:typer_app
688692
:prog: ./manage.py order
689693
:width: 80
690694

695+
.. typer:: tests.apps.howto.management.commands.order.Command:typer_app:d
696+
:prog: ./manage.py order d
697+
:width: 80
698+
691699
Document Commands w/Sphinx
692700
--------------------------
693701

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
from .order import Command as Order
2+
from django_typer.management import group
23

34

45
class Command(Order):
5-
pass
6+
@group()
7+
def d(self):
8+
print("d")
9+
10+
@d.command()
11+
def f(self):
12+
print("f")
13+
14+
@d.command()
15+
def e(self):
16+
print("e")

0 commit comments

Comments
 (0)