Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How would I go about saving the output from --joined-rooms and/or --joined-members to json format? #95

Closed
tac-geek opened this issue Sep 24, 2022 · 4 comments
Labels
enhancement New feature or request question Further information is requested solved The issue was solved or solution is known.

Comments

@tac-geek
Copy link

tac-geek commented Sep 24, 2022

Hello,
How do I save the output as a JSON formatted file please?

Edit: apologies, was inactive until now. Fixed typos.

@8go
Copy link
Owner

8go commented Oct 2, 2022

You can use output redirect (> in Linux) to write any and all output to a file.

E.g. matrix-commander ... arguments ... > myoutput.txt will write it to a text file.

You want a JSON file? Take the text file and convert it with JSON tools and/or a script to your desired JSON format.

@8go 8go added the question Further information is requested label Oct 2, 2022
@8go 8go changed the title How would I go about saving the output from --joined-rooms and/or --joined-members to json format? Question: How would I go about saving the output from --joined-rooms and/or --joined-members to json format? Oct 2, 2022
@8go
Copy link
Owner

8go commented Oct 2, 2022

This could also be related to Issue #92 and the general output-as-JSON discussion.

Maybe in the context of tackling Issue #92 something can be done about --joined-rooms and/or --joined-members as well.

@8go 8go added the enhancement New feature or request label Oct 2, 2022
8go pushed a commit that referenced this issue Oct 4, 2022
- bug fix in --joined-members
- new feature: --output

- --output is currently only implemented for 2 functions: --joined-members and --joined-rooms

- see Issue #94
- see Issue #95
- see Issue #92
- see Issue #89
@8go
Copy link
Owner

8go commented Oct 4, 2022

Hi @tacticalgeek

Check out commit e09a4f1

Test it and give your feedback?

If all happy then please close this issue. Any other JSON/raw data/etc comments please on the Issue #92

I want to centralize all JSON-related discussion in one place, in Issue #92 .

@tac-geek
Copy link
Author

@8go thank you very much for providing solutions and support, I appreciate your time and work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested solved The issue was solved or solution is known.
Projects
None yet
Development

No branches or pull requests

2 participants