forked from cwtch.im/cwtch
Merge branch 'cli' of cwtch.im/cwtch into master
This commit is contained in:
commit
7f99747100
|
@ -223,11 +223,11 @@ func main() {
|
||||||
}
|
}
|
||||||
case "contacts":
|
case "contacts":
|
||||||
for _, c := range app.Peer.Profile.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":
|
case "groups":
|
||||||
for gid, g := range app.Peer.Profile.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":
|
case "trust":
|
||||||
if len(commands) == 2 {
|
if len(commands) == 2 {
|
||||||
|
|
Loading…
Reference in New Issue