Skip to content

Commit 2eded5d

Browse files
committed
Update readme
1 parent e0236ba commit 2eded5d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

HISTORY.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
History
33
=======
44

5-
1.0.0 – Unreleased
5+
1.0.0 – 2015-09-14
66
==================
77

88
* Support for command groups

README.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ Example
5050
=======
5151

5252
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``:
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.

0 commit comments

Comments
 (0)