File: autodoc2.cli.rst

package info (click to toggle)
python-sphinx-autodoc2 0.5.0-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,268 kB
  • sloc: python: 3,407; xml: 72; makefile: 9
file content (95 lines) | stat: -rw-r--r-- 4,278 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
:py:mod:`autodoc2.cli`
======================

.. py:module:: autodoc2.cli

.. autodoc2-docstring:: autodoc2.cli
   :allowtitles:

Module Contents
---------------

Functions
~~~~~~~~~

.. list-table::
   :class: autosummary longtable
   :align: left

   * - :py:obj:`version_callback <autodoc2.cli.version_callback>`
     - .. autodoc2-docstring:: autodoc2.cli.version_callback
          :summary:
   * - :py:obj:`main_app <autodoc2.cli.main_app>`
     - .. autodoc2-docstring:: autodoc2.cli.main_app
          :summary:
   * - :py:obj:`list_items <autodoc2.cli.list_items>`
     - .. autodoc2-docstring:: autodoc2.cli.list_items
          :summary:
   * - :py:obj:`create_db <autodoc2.cli.create_db>`
     - .. autodoc2-docstring:: autodoc2.cli.create_db
          :summary:
   * - :py:obj:`analyse_all <autodoc2.cli.analyse_all>`
     - .. autodoc2-docstring:: autodoc2.cli.analyse_all
          :summary:
   * - :py:obj:`write <autodoc2.cli.write>`
     - .. autodoc2-docstring:: autodoc2.cli.write
          :summary:

Data
~~~~

.. list-table::
   :class: autosummary longtable
   :align: left

   * - :py:obj:`console <autodoc2.cli.console>`
     - .. autodoc2-docstring:: autodoc2.cli.console
          :summary:
   * - :py:obj:`app_main <autodoc2.cli.app_main>`
     - .. autodoc2-docstring:: autodoc2.cli.app_main
          :summary:

API
~~~

.. py:data:: console
   :canonical: autodoc2.cli.console
   :value: None

   .. autodoc2-docstring:: autodoc2.cli.console

.. py:data:: app_main
   :canonical: autodoc2.cli.app_main
   :value: None

   .. autodoc2-docstring:: autodoc2.cli.app_main

.. py:function:: version_callback(value: bool) -> None
   :canonical: autodoc2.cli.version_callback

   .. autodoc2-docstring:: autodoc2.cli.version_callback

.. py:function:: main_app(version: typing.Optional[bool] = typer.Option(None, '-v', '--version', callback=version_callback, is_eager=True, help='Show the application version and exit.')) -> None
   :canonical: autodoc2.cli.main_app

   .. autodoc2-docstring:: autodoc2.cli.main_app

.. py:function:: list_items(path: pathlib.Path = typer.Argument(..., exists=True, help='Path to analyse'), module: typing.Optional[str] = typer.Option(None, '-m', '--module', help='The name of the module, otherwise it will be guessed from the path'), inherited: bool = typer.Option(False, '-i', '--inherited', help='Show inherited members'), private: bool = typer.Option(False, '-p', '--private', help='Show private members'), one_line: bool = typer.Option(False, '-o', '--one-line', help='Show only full name and type'), filter_types_str: typing.Optional[str] = typer.Option(None, '-ft', '--filter-types', help='Only show members of types (comma separated)'), skip_types_str: str = typer.Option('import_from', '-st', '--skip-types', help='Do not show members of types (comma separated)'), filter_name: typing.Optional[str] = typer.Option(None, '-fn', '--filter-name', help='Only show members with this name regex')) -> None
   :canonical: autodoc2.cli.list_items

   .. autodoc2-docstring:: autodoc2.cli.list_items

.. py:function:: create_db(path: pathlib.Path = typer.Argument(..., exists=True, help='Path to analyse'), output: pathlib.Path = typer.Argument('autodoc.db.json', help='File to write to'), module: typing.Optional[str] = typer.Option(None, '-m', '--module', help='The name of the module, otherwise it will be guessed from the path')) -> None
   :canonical: autodoc2.cli.create_db

   .. autodoc2-docstring:: autodoc2.cli.create_db

.. py:function:: analyse_all(path: pathlib.Path = typer.Argument(..., exists=True, help='Path to a database file'), package: str = typer.Argument(..., help='The name of the package to resolve.')) -> None
   :canonical: autodoc2.cli.analyse_all

   .. autodoc2-docstring:: autodoc2.cli.analyse_all

.. py:function:: write(path: pathlib.Path = typer.Argument(..., exists=True, help='Path to analyse'), module: typing.Optional[str] = typer.Option(None, '-m', '--module', help='The name of the module, otherwise it will be guessed from the path'), output: pathlib.Path = typer.Option('_autodoc', help='Folder to write to'), clean: bool = typer.Option(False, '-c', '--clean', help='Remove old files')) -> None
   :canonical: autodoc2.cli.write

   .. autodoc2-docstring:: autodoc2.cli.write