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:
Jan-Piet Mens 2012-11-28 09:39:26 +01:00 committed by Michael DeHaan
parent b8d6dec5ad
commit 17f31a2a79
6 changed files with 346 additions and 4 deletions

View file

@ -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