def runner_doc(*args):
 run_ = salt.runner.Runner(__opts__)
 docs = {}
 if (not args):
  for fun in run_.functions:
   docs[fun] = run_.functions[fun].__doc__
  return _strip_rst(docs)
 for module in args:
  _use_fnmatch = False
  if ('*' in module):
   target_mod = module
   _use_fnmatch = True
  elif module:
   target_mod = ((module + '.') if (not module.endswith('.')) else module)
  else:
   target_mod = ''
  if _use_fnmatch:
   for fun in fnmatch.filter(run_.functions, target_mod):
    docs[fun] = run_.functions[fun].__doc__
  else:
   for fun in run_.functions:
    if ((fun == module) or fun.startswith(target_mod)):
     docs[fun] = run_.functions[fun].__doc__
 return _strip_rst(docs)

def runner_doc ( * args ) : run_ = salt . runner . Runner ( __opts__ ) docs = { } if ( not args ) : for fun in run_ . functions : docs [ fun ] = run_ . functions [ fun ] . __doc__ return _strip_rst ( docs ) for module in args : _use_fnmatch = False if ( '*' in module ) : target_mod = module _use_fnmatch = True elif module : target_mod = ( ( module + '.' ) if ( not module . endswith ( '.' ) ) else module ) else : target_mod = '' if _use_fnmatch : for fun in fnmatch . filter ( run_ . functions , target_mod ) : docs [ fun ] = run_ . functions [ fun ] . __doc__ else : for fun in run_ . functions : if ( ( fun == module ) or fun . startswith ( target_mod ) ) : docs [ fun ] = run_ . functions [ fun ] . __doc__ return _strip_rst ( docs )
return the docstrings for all runners .