Commands should be able to return json formatted data
ihabunek opened this issue · comments
Ivan Habunek commented
To facilitate scripting, it would be nice if commands could spit out json instead of plaintext. This can be accomplished by adding a --json
option. In many cases we could skip decoding json and spit out the json received from the server.
Progress:
Authentication
- login
- login_cli
- activate
- logout
- auth
- env
- update_account
TUI
- tui
Read
- whoami
- whois
- notifications
- instance
- search
- thread
- status
- timeline
- bookmarks
Post
- post
- upload
Status
- delete
- favourite
- unfavourite
- reblog
- unreblog
- reblogged_by
- pin
- unpin
- bookmark
- unbookmark
Accounts
- follow
- unfollow
- following
- followers
- mute
- unmute
- muted
- block
- unblock
- blocked
Hashtags
- tags_followed
- tags_follow
- tags_unfollow
Lists
- lists
- list_accounts
- list_create
- list_delete
- list_add
- list_remove
Daniel Schwarz commented
Agree, this has been on my wishlist for a while