Support auto reconnection
A new option `--auto-reconnect` which takes seconds to reconnect is added.
This commit is contained in:
17
app/app.go
17
app/app.go
@@ -32,14 +32,15 @@ type App struct {
|
||||
}
|
||||
|
||||
type Options struct {
|
||||
Address string
|
||||
Port string
|
||||
PermitWrite bool
|
||||
Credential string
|
||||
RandomUrl bool
|
||||
ProfileFile string
|
||||
TitleFormat string
|
||||
Command []string
|
||||
Address string
|
||||
Port string
|
||||
PermitWrite bool
|
||||
Credential string
|
||||
RandomUrl bool
|
||||
ProfileFile string
|
||||
TitleFormat string
|
||||
AutoReconnect int
|
||||
Command []string
|
||||
}
|
||||
|
||||
const DefaultProfileFilePath = "~/.gotty"
|
||||
|
||||
Reference in New Issue
Block a user