mirror of
https://codeberg.org/june64/mrvc.git
synced 2026-01-10 16:06:33 +01:00
introduce option for JSON output
Also rename printHomeserverMemberCount option accordingly to fit new output type.
This commit is contained in:
parent
1e9f23d7a9
commit
4964485d29
6 changed files with 67 additions and 20 deletions
6
main.go
6
main.go
|
|
@ -43,5 +43,9 @@ func main() {
|
|||
|
||||
roomInfoTree := roominfotree.Get(config.Rooms, config.Recursive, config.RecursionMaxDepth, config.RecursionSuggestedOnly, client, federationClient)
|
||||
|
||||
output.Print(roomInfoTree, config.PrintHomeserverMemberCount)
|
||||
if config.JSON {
|
||||
output.PrintJSON(roomInfoTree, config.OutputHomeserverMemberCount)
|
||||
} else {
|
||||
output.Print(roomInfoTree, config.OutputHomeserverMemberCount)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue