CLI options to start SSH and serial connections - fixes #2785

This commit is contained in:
Eugene Pankov
2021-05-16 16:06:50 +02:00
parent 3f40098ffb
commit 7506670dfb
7 changed files with 72 additions and 16 deletions

View File

@@ -16,6 +16,12 @@ export function parseArgs (argv: string[], cwd: string): any {
.command('profile [profileName]', 'open a tab with specified profile', {
profileName: { type: 'string' },
})
.command('connect-ssh [connectionName]', 'open a tab for a saved SSH connection', {
connectionName: { type: 'string' },
})
.command('connect-serial [connectionName]', 'open a tab for a saved serial connection', {
connectionName: { type: 'string' },
})
.command('paste [text]', 'paste stdin into the active tab', yargs => {
return yargs.option('escape', {
alias: 'e',