mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Whitespace and output formatting fixes
This commit is contained in:
parent
b0d7daeca2
commit
5845dad769
2 changed files with 8 additions and 8 deletions
|
@ -503,9 +503,10 @@ public class Main {
|
||||||
}
|
}
|
||||||
|
|
||||||
List<GroupInfo> groups = m.getGroups();
|
List<GroupInfo> groups = m.getGroups();
|
||||||
|
boolean detailed = ns.getBoolean("detailed");
|
||||||
|
|
||||||
for (GroupInfo group : groups) {
|
for (GroupInfo group : groups) {
|
||||||
printGroup(group, ns.getBoolean("detailed"));
|
printGroup(group, detailed);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "listIdentities":
|
case "listIdentities":
|
||||||
|
@ -640,13 +641,12 @@ public class Main {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void printGroup(GroupInfo group, boolean detailed) {
|
private static void printGroup(GroupInfo group, boolean detailed) {
|
||||||
System.out.println(String.format("Group id: %s\n Group name: %s \n active: %s",
|
|
||||||
Base64.encodeBytes(group.groupId), group.name, group.active));
|
|
||||||
if (detailed) {
|
if (detailed) {
|
||||||
System.out.println(" Members:");
|
System.out.println(String.format("Id: %s Name: %s Active: %s Members: %s",
|
||||||
for (String member : group.members) {
|
Base64.encodeBytes(group.groupId), group.name, group.active, group.members));
|
||||||
System.out.println(" " + member);
|
} else {
|
||||||
}
|
System.out.println(String.format("Id: %s Name: %s Active: %s", Base64.encodeBytes(group.groupId),
|
||||||
|
group.name, group.active));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -582,7 +582,7 @@ class Manager implements Signal {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<GroupInfo> getGroups() {
|
public List<GroupInfo> getGroups() {
|
||||||
return groupStore.getGroups();
|
return groupStore.getGroups();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue