def cli_run(command, options = {}, &code)
    command = command.join(' ') if command.is_a?(Array)
    config  = Config.ensure(options)

    logger.info("Executing command #{command}")

    result = Util::Shell.connection.exec(command, config, &code)

    unless config.get(:quiet, false) || result.status == Nucleon.code.success
      ui.error("Command #{command} failed to execute")
    end
    result
  end
def cli_run(command, options = {}, &code)
    command = command.join(' ') if command.is_a?(Array)
    config  = Config.ensure(options)

    logger.info("Executing command #{command}")

    result = Util::Shell.connection.exec(command, config, &code)

    unless config.get(:quiet, false) || result.status == Nucleon.code.success
      ui.error("Command #{command} failed to execute")
    end
    result
  end
---