diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-08-03 18:07:10 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-08-03 13:07:10 -0700 |
| commit | da1e0d79561ded0b3998a50a1d14a16b5c9a24bc (patch) | |
| tree | 79789e0d215c486c3f766f2467f2bbd72f68ddfc /hotline/client.go | |
| parent | b25c4a19420c2fde1f290dd360c68b84e4eaa1ed (diff) | |
Initial bookmark creation
Diffstat (limited to 'hotline/client.go')
| -rw-r--r-- | hotline/client.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hotline/client.go b/hotline/client.go index b423f9f..e676e65 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -46,6 +46,12 @@ func (cp *ClientPrefs) IconBytes() []byte { return iconBytes } +func (cp *ClientPrefs) AddBookmark(name, addr, login, pass string) error { + cp.Bookmarks = append(cp.Bookmarks, Bookmark{Addr: addr, Login: login, Password: pass}) + + return nil +} + func readConfig(cfgPath string) (*ClientPrefs, error) { fh, err := os.Open(cfgPath) if err != nil { |