File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 22History
33=======
44
5- 1.0.0 – Unreleased
5+ 1.0.0 – 2015-09-14
66==================
77
88* Support for command groups
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ Example
5050=======
5151
5252Create a command module as you would usually do, but instead of creating a
53- class, just put a djclick command into it:
53+ class, just put a ``djclick `` command into
54+ ``<yourapp>/management/commands/helloworld.py ``:
5455
5556.. code :: python
5657
@@ -60,3 +61,12 @@ class, just put a djclick command into it:
6061 @click.argument (' name' )
6162 def command (name ):
6263 click.secho(' Hello, {} ' .format(name), fg = ' red' )
64+
65+ And then call the command with::
66+
67+ $ ./manage.py helloworld django-click
68+ Hello, django-click
69+
70+ Check out the `test commands
71+ <https://github.com/GaretJax/django-click/tree/master/djclick/test/testprj/testapp/management/commands> `_
72+ for additional example commands and advanced usage.
You can’t perform that action at this time.
0 commit comments