Skip to content

Commit 4a350fc

Browse files
authored
Use sphinx-click for dask CLI (#9589)
1 parent 9adabf1 commit 4a350fc

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

docs/source/cli.rst

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
11
Command Line Interface
22
======================
33

4-
Dask provides the ``dask`` executable to accomplish tasks directly
5-
from the command line. Projects in the Dask ecosystem (such as
6-
``distributed``) leverage the command line tool by adding subcommands.
7-
For example, additional commands implemented in ``distributed`` are
8-
:ref:`documented here <deploying-cli>`.
4+
Dask provides a ``dask`` executable for a command line interface.
5+
Dask's CLI is :ref:`designed to be extensible <extending-cli>` allowing
6+
other projects in the Dask ecosystem (such as ``distributed``) to
7+
add subcommands.
98

10-
Built in commands
9+
Built-in commands
1110
-----------------
1211

13-
dask docs
14-
~~~~~~~~~
12+
``dask`` comes with the following commands.
1513

16-
Command to open the Dask documentation website.
14+
.. click:: dask.cli:info
15+
:prog: dask info
16+
:show-nested:
1717

18-
dask info
19-
~~~~~~~~~
18+
.. click:: dask.cli:docs
19+
:prog: dask docs
20+
:show-nested:
2021

21-
Command to inspect the details of your Dask installation.
22+
23+
.. _extending-cli:
2224

2325
Extending the Dask CLI
2426
----------------------
2527

28+
.. note::
29+
30+
This section is intended for library authors who want to
31+
integrate their library with the ``dask`` CLI.
32+
2633
Third party packages can extend the ``dask`` command line tool via
2734
entry points and Click_. Dask will discover :obj:`click.Command` and
2835
:obj:`click.Group` objects registered as entry points under the

0 commit comments

Comments
 (0)