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 2
2
History
3
3
=======
4
4
5
- 1.0.0 – Unreleased
5
+ 1.0.0 – 2015-09-14
6
6
==================
7
7
8
8
* Support for command groups
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ Example
50
50
=======
51
51
52
52
Create 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 ``:
54
55
55
56
.. code :: python
56
57
@@ -60,3 +61,12 @@ class, just put a djclick command into it:
60
61
@click.argument (' name' )
61
62
def command (name ):
62
63
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