def do_cmd(self, s=''):
"""
Generate a command line to call the
ability with the current parameters from
a standard system's script.
Your can specify the 'oneline' argument to have
a one-line version to run the ability directly
from a system's shell.
"""
self._view.delimiter("Cmd to replay the module")
options, command = self._generate_command()
if s == "oneline":
sep = ' '
self._view.info('{}{};{}'.format(sep.join(options), sep, command))
else:
sep = '\n'
self._view.info('{}{}{}'.format(
sep.join(['export {}'.format(opt) for opt in options]),
sep, command
))
评论列表
文章目录