Support auto reconnection

A new option `--auto-reconnect` which takes seconds to reconnect is
added.
This commit is contained in:
Iwasaki Yudai 2015-08-24 07:14:24 +09:00
parent 4df9ac8059
commit acacba6f03
6 changed files with 97 additions and 55 deletions

View file

@ -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"