mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-09 09:49:09 -07:00
CLI: ansible-doc shows lists of modules & module docs on command-line
check path is directory added manpage & setup small cleanup shut up module_formatter in utils to avoid trace print on crud files in library
This commit is contained in:
parent
b8d6dec5ad
commit
17f31a2a79
6 changed files with 346 additions and 4 deletions
|
@ -45,6 +45,7 @@ def get_docstring(filename, verbose=False):
|
|||
doc = yaml.load(child.value.s)
|
||||
|
||||
except:
|
||||
traceback.print_exc()
|
||||
print "unable to parse %s" % filename
|
||||
if verbose == True:
|
||||
traceback.print_exc()
|
||||
print "unable to parse %s" % filename
|
||||
return doc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue