Skip to content
Snippets Groups Projects
Commit a5a20ef0 authored by Erik Reid's avatar Erik Reid
Browse files

added some initial docs

parent 70d9ed87
No related branches found
No related tags found
No related merge requests found
.. list of basic cli tools
CLI Tools
=========================
.. automodule:: resource_management.cli
...@@ -58,7 +58,8 @@ author = 'GN5' ...@@ -58,7 +58,8 @@ author = 'GN5'
extensions = [ extensions = [
'sphinx_rtd_theme', 'sphinx_rtd_theme',
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx.ext.coverage' 'sphinx.ext.coverage',
'sphinx.ext.todo'
] ]
templates_path = ['_templates'] templates_path = ['_templates']
...@@ -78,3 +79,6 @@ html_static_path = ['_static'] ...@@ -78,3 +79,6 @@ html_static_path = ['_static']
autoclass_content = 'both' autoclass_content = 'both'
autodoc_typehints = 'none' autodoc_typehints = 'none'
# Display todos by setting to True
todo_include_todos = True
...@@ -3,13 +3,22 @@ ...@@ -3,13 +3,22 @@
You can adapt this file completely to your liking, but it should at least You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive. contain the root `toctree` directive.
Welcome to NAT Resource Management's documentation! NAT Resource Management
=================================================== ==========================
Documentation for the NAT Resource Management tools
------------------
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 1
:caption: Contents: :caption: Contents:
basic-tools
Indices and tables Indices and tables
......
"""
script name [TODO]
====================
.. code-block:: bash
Usage: script name [OPTIONS]
notes: - first call init_db(dns=mysql_dsn(params from config)) - then create
a session (as in unit test) - ... and perform the db queries
Options:
--config FILENAME config filename [required]
--fqdn TEXT config filename [required]
--help Show this message and exit.
The configuration filename must be formatted according
to this schema:
.. asjson::
resource_management.config.CONFIG_SCHEMA
.. todo::
add a console script alias and change the name (cli.py) below
"""
import json import json
import click import click
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment