Baredoc walks the installed module and state directories and generates dictionaries and lists of the function names and their arguments.
New in version 3001.
Walk the Salt install tree for execution modules and return a dictionary or a list of their functions as well as their arguments.
name -- specify a specific module to list. If not specified, all modules will be listed.
names_only -- Return only a list of the callable functions instead of a dictionary with arguments
CLI Example:
salt myminion baredoc.list_modules
myminion:
----------
[...]
at:
- atq:
tag: null
- atrm:
args: args
- at:
args: args
kwargs: kwargs
- atc:
jobid: null
- jobcheck:
kwargs: kwargs
[...]
Walk the Salt install tree for state modules and return a dictionary or a list of their functions as well as their arguments.
name -- specify a specific module to list. If not specified, all modules will be listed.
names_only -- Return only a list of the callable functions instead of a dictionary with arguments
CLI Example:
(example truncated for brevity)
salt myminion baredoc.list_states
myminion:
----------
[...]
at:
- present:
name: null
timespec: null
tag: null
user: null
job: null
unique_tag: false
- absent:
name: null
jobid: null
kwargs: kwargs
- watch:
name: null
timespec: null
tag: null
user: null
job: null
unique_tag: false
- mod_watch:
name: null
kwargs: kwargs
[...]
Return the docstrings for all modules. Optionally, specify a module or a function to narrow the selection.
name -- specify a specific module to list.
CLI Example:
salt myminion baredoc.module_docs
Return the docstrings for all state modules. Optionally, specify a state module or a function to narrow the selection.
name -- specify a specific module to list.
CLI Example:
salt myminion baredoc.state_docs at