parameters: (tool)
docstring: This function is called by bundyctl_main, and sets up the commands
         defined here for use in bundyctl.
docstring_summary: This function is called by bundyctl_main, and sets up the commands
         defined here for use in bundyctl.
docstring_tokens: This function is called by bundyctl_main and sets up the commands defined here for use in bundyctl .
function: def prepare_execute_commands(tool):
      """This function is called by bundyctl_main, and sets up the commands
         defined here for use in bundyctl."""
      # common parameter
      param_show = ParamInfo(name="show", type="string", optional=True,
          desc="Show the list of commands without executing them")
  
      # The command module
      module = ModuleInfo(name=EXECUTE_MODULE_NAME,
                          desc="Execute a given set of commands")
  
      # Command to execute a file
      cmd = CommandInfo(name="file", desc="Read commands from file")
      param = ParamInfo(name="filename", type="string", optional=False,
                        desc="File to read the set of commands from.")
      cmd.add_param(param)
      cmd.add_param(param_show)
      module.add_command(cmd)
  
      # and loop through all command sets defined above
      for name in command_sets:
          cmd = CommandInfo(name=name, desc=get_description(name))
          cmd.add_param(param_show)
          module.add_command(cmd)
  
      tool.add_module_info(module)
function_tokens: def prepare_execute_commands ( tool ) : # common parameter param_show = ParamInfo ( name = "show" , type = "string" , optional = True , desc = "Show the list of commands without executing them" ) # The command module module = ModuleInfo ( name = EXECUTE_MODULE_NAME , desc = "Execute a given set of commands" ) # Command to execute a file cmd = CommandInfo ( name = "file" , desc = "Read commands from file" ) param = ParamInfo ( name = "filename" , type = "string" , optional = False , desc = "File to read the set of commands from." ) cmd . add_param ( param ) cmd . add_param ( param_show ) module . add_command ( cmd ) # and loop through all command sets defined above for name in command_sets : cmd = CommandInfo ( name = name , desc = get_description ( name ) ) cmd . add_param ( param_show ) module . add_command ( cmd ) tool . add_module_info ( module )