"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SSHBaseCommand = void 0; const utils_subprocess_1 = require("@ionic/utils-subprocess"); const color_1 = require("../../lib/color"); const command_1 = require("../../lib/command"); const errors_1 = require("../../lib/errors"); class SSHBaseCommand extends command_1.Command { async checkForOpenSSH() { try { await this.env.shell.run('ssh', ['-V'], { stdio: 'ignore', showCommand: false, fatalOnNotFound: false }); } catch (e) { if (!(e instanceof utils_subprocess_1.SubprocessError && e.code === utils_subprocess_1.ERROR_COMMAND_NOT_FOUND)) { throw e; } this.env.log.warn('OpenSSH not found on your computer.'); // TODO: more helpful message throw new errors_1.FatalException(`Command not found: ${color_1.strong('ssh')}`); } } } exports.SSHBaseCommand = SSHBaseCommand;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
add.d.ts | File | 494 B | 0644 |
|
add.js | File | 4.73 KB | 0644 |
|
base.d.ts | File | 148 B | 0644 |
|
base.js | File | 971 B | 0644 |
|
delete.d.ts | File | 446 B | 0644 |
|
delete.js | File | 2.28 KB | 0644 |
|
generate.d.ts | File | 448 B | 0644 |
|
generate.js | File | 4.56 KB | 0644 |
|
index.d.ts | File | 353 B | 0644 |
|
index.js | File | 2.14 KB | 0644 |
|
list.d.ts | File | 390 B | 0644 |
|
list.js | File | 3.56 KB | 0644 |
|
setup.d.ts | File | 402 B | 0644 |
|
setup.js | File | 5.71 KB | 0644 |
|
use.d.ts | File | 320 B | 0644 |
|
use.js | File | 4.15 KB | 0644 |
|