Add method that returns if bookmark's ssh is empty
We will use this method in upcoming commit to create client from stored bookmark.
This commit is contained in:
@@ -23,6 +23,9 @@ type Bookmark struct {
|
||||
Ssh shared.SSHInfo `json:"ssh"` // SSH tunnel config
|
||||
}
|
||||
|
||||
func (b Bookmark) SSHInfoIsEmpty() bool {
|
||||
return b.Ssh.User == "" && b.Ssh.Host == "" && b.Ssh.Port == ""
|
||||
}
|
||||
func readServerConfig(path string) (Bookmark, error) {
|
||||
bookmark := Bookmark{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user