|
|
@ -6,6 +6,7 @@ import sys
|
|
|
|
|
|
|
|
|
|
|
|
from jinja2 import Environment, FileSystemLoader
|
|
|
|
from jinja2 import Environment, FileSystemLoader
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_options(optlist):
|
|
|
|
def get_options(optlist):
|
|
|
|
''' get actual options '''
|
|
|
|
''' get actual options '''
|
|
|
|
|
|
|
|
|
|
|
@ -21,6 +22,7 @@ def get_options(optlist):
|
|
|
|
|
|
|
|
|
|
|
|
return opts
|
|
|
|
return opts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def opt_doc_list(cli):
|
|
|
|
def opt_doc_list(cli):
|
|
|
|
''' iterate over options lists '''
|
|
|
|
''' iterate over options lists '''
|
|
|
|
|
|
|
|
|
|
|
@ -32,6 +34,7 @@ def opt_doc_list(cli):
|
|
|
|
|
|
|
|
|
|
|
|
return results
|
|
|
|
return results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def opts_docs(cli, name):
|
|
|
|
def opts_docs(cli, name):
|
|
|
|
''' generate doc structure from options '''
|
|
|
|
''' generate doc structure from options '''
|
|
|
|
|
|
|
|
|
|
|
@ -39,7 +42,7 @@ def opts_docs(cli, name):
|
|
|
|
if '-' in name:
|
|
|
|
if '-' in name:
|
|
|
|
name = name.split('-')[1]
|
|
|
|
name = name.split('-')[1]
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
name = 'adhoc'
|
|
|
|
name = 'adhoc'
|
|
|
|
|
|
|
|
|
|
|
|
# cli info
|
|
|
|
# cli info
|
|
|
|
docs = {
|
|
|
|
docs = {
|
|
|
@ -83,7 +86,7 @@ if __name__ == '__main__':
|
|
|
|
libname = os.path.splitext(binary)[0]
|
|
|
|
libname = os.path.splitext(binary)[0]
|
|
|
|
print("Found CLI %s" % libname)
|
|
|
|
print("Found CLI %s" % libname)
|
|
|
|
|
|
|
|
|
|
|
|
if libname == 'adhoc':
|
|
|
|
if libname == 'adhoc':
|
|
|
|
myclass = 'AdHocCLI'
|
|
|
|
myclass = 'AdHocCLI'
|
|
|
|
output[libname] = 'ansible.1.asciidoc.in'
|
|
|
|
output[libname] = 'ansible.1.asciidoc.in'
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|