mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-18 07:31:33 +03:00
lint
This commit is contained in:
parent
0a451c5876
commit
0360ad2dd0
@ -84,18 +84,6 @@ export class SSHSession extends BaseSession {
|
|||||||
this.scripts = connection.scripts || []
|
this.scripts = connection.scripts || []
|
||||||
}
|
}
|
||||||
|
|
||||||
private openShellChannel (options): Promise<ClientChannel> {
|
|
||||||
return new Promise<ClientChannel>((resolve, reject) => {
|
|
||||||
this.ssh.shell({ term: 'xterm-256color' }, options, (err, shell) => {
|
|
||||||
if (err) {
|
|
||||||
reject(err)
|
|
||||||
} else {
|
|
||||||
resolve(shell)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
async start () {
|
async start () {
|
||||||
this.open = true
|
this.open = true
|
||||||
|
|
||||||
@ -334,6 +322,18 @@ export class SSHSession extends BaseSession {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private openShellChannel (options): Promise<ClientChannel> {
|
||||||
|
return new Promise<ClientChannel>((resolve, reject) => {
|
||||||
|
this.ssh.shell({ term: 'xterm-256color' }, options, (err, shell) => {
|
||||||
|
if (err) {
|
||||||
|
reject(err)
|
||||||
|
} else {
|
||||||
|
resolve(shell)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
private executeUnconditionalScripts () {
|
private executeUnconditionalScripts () {
|
||||||
if (this.scripts) {
|
if (this.scripts) {
|
||||||
for (const script of this.scripts) {
|
for (const script of this.scripts) {
|
||||||
|
Loading…
Reference in New Issue
Block a user