@@ -53,10 +53,10 @@ for django commands we need to register our completion logic for Django manage s
53
53
the shell. This process has two phases:
54
54
55
55
1. Ensure that your shell is configured to support completions.
56
- 2. Use the :mod: ` ~django_typer.management.commands. shellcompletion ` command to install the
57
- completion hook for your Django manage script. This usually entails adding a specifically
58
- named script to a certain directory or adding lines to an existing profile. The
59
- :mod: ` ~django_typer.management.commands.shellcompletion ` command will handle this for you.
56
+ 2. Use the :django-admin: ` shellcompletion ` command to install the completion hook for your Django
57
+ manage script. This usually entails adding a specifically named script to a certain directory or
58
+ adding lines to an existing profile. The :django-admin: ` shellcompletion ` command will handle this
59
+ for you.
60
60
61
61
62
62
The goal of this guide is not to be an exhaustive list of how to enable completions for each
@@ -126,9 +126,8 @@ or have solutions, please `report them on our discussions page <https://github.c
126
126
Install the Completion Hook
127
127
---------------------------
128
128
129
- django-typer _ comes with a management command called
130
- :mod: `~django_typer.management.commands.shellcompletion `. To install completions for your Django _
131
- project simply run the install command:
129
+ django-typer _ comes with a management command called :django-admin: `shellcompletion `. To install
130
+ completions for your Django _ project simply run the install command:
132
131
133
132
.. code-block :: bash
134
133
@@ -145,8 +144,7 @@ will make and ask for permission before proceeding. To skip the prompt use** ``-
145
144
146
145
The installation script should be able to automatically detect your shell and install the
147
146
appropriate scripts. If it is unable to do so you may force it to install for a specific shell by
148
- passing the shell name as an argument. Refer to the
149
- :mod: `~django_typer.management.commands.shellcompletion ` for details.
147
+ passing the shell name as an argument. Refer to the :django-admin: `shellcompletion ` for details.
150
148
151
149
**After installation you will need to restart your shell or source the appropriate rc file. **
152
150
0 commit comments