mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 14:04:56 +00:00
CLI options to start SSH and serial connections - fixes #2785
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
||||
import * as fs from 'mz/fs'
|
||||
import { Injectable } from '@angular/core'
|
||||
import { ToolbarButtonProvider, ToolbarButton, ElectronService, ConfigService, SelectorOption, AppService } from 'terminus-core'
|
||||
|
||||
@@ -15,18 +14,6 @@ export class ButtonProvider extends ToolbarButtonProvider {
|
||||
private terminal: TerminalService,
|
||||
) {
|
||||
super()
|
||||
if (!electron.process.env.TERMINUS_DEV) {
|
||||
setImmediate(async () => {
|
||||
const argv: string[] = electron.process.argv
|
||||
for (const arg of argv.slice(1).concat([electron.process.argv0])) {
|
||||
if (await fs.exists(arg)) {
|
||||
if ((await fs.stat(arg)).isDirectory()) {
|
||||
this.terminal.openTab(undefined, arg)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
async activate () {
|
||||
|
Reference in New Issue
Block a user