Merge branch 'cli' of cwtch.im/cwtch into master

This commit is contained in:
Dan Ballard 2018-06-20 05:19:46 +00:00 committed by Gogs
commit 7f99747100
1 changed files with 2 additions and 2 deletions

View File

@ -223,11 +223,11 @@ func main() {
}
case "contacts":
for _, c := range app.Peer.Profile.Contacts {
fmt.Printf("Name: %v, Onion: %v, Trusted: %v\n", c.Name, c.Onion, c.Trusted)
fmt.Printf("Name: %v Onion: %v Trusted: %v\n", c.Name, c.Onion, c.Trusted)
}
case "groups":
for gid, g := range app.Peer.Profile.Groups {
fmt.Printf("Group Id: %v, Owner: %v Accepted:%v \n", gid, g.Owner, g.Accepted)
fmt.Printf("Group Id: %v Owner: %v Accepted:%v \n", gid, g.Owner, g.Accepted)
}
case "trust":
if len(commands) == 2 {