UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

18 lines 733 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ora = require("ora"); const ssh_spawner_1 = require("../spawner/ssh-spawner"); async function checkForPasswordlessSshConnectivityComponent(props) { const spinner = ora('Check for passwordless ssh connectivity').start(); const spawner = ssh_spawner_1.SshSpawner({ hostname: props.targetHostname }); try { await spawner.run({ exe: 'ls' }); spinner.succeed(); } catch (exception) { spinner.fail(); throw exception; } } exports.checkForPasswordlessSshConnectivityComponent = checkForPasswordlessSshConnectivityComponent; //# sourceMappingURL=check-for-passwordless-ssh-connectivity-component.js.map