toot icon indicating copy to clipboard operation
toot copied to clipboard

Commands should be able to return json formatted data

Open ihabunek opened this issue 1 year ago • 1 comments

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
  • [x] update_account

TUI

  • [ ] tui

Read

  • [x] whoami
  • [x] whois
  • [ ] notifications
  • [x] instance
  • [x] search
  • [x] thread
  • [x] status
  • [ ] timeline
  • [ ] bookmarks

Post

  • [x] post
  • [ ] upload

Status

  • [x] delete
  • [x] favourite
  • [x] unfavourite
  • [x] reblog
  • [x] unreblog
  • [x] reblogged_by
  • [x] pin
  • [x] unpin
  • [x] bookmark
  • [x] unbookmark

Accounts

  • [x] follow
  • [x] unfollow
  • [x] following
  • [x] followers
  • [x] mute
  • [x] unmute
  • [x] muted
  • [x] block
  • [x] unblock
  • [x] blocked

Hashtags

  • [ ] tags_followed
  • [ ] tags_follow
  • [ ] tags_unfollow

Lists

  • [ ] lists
  • [ ] list_accounts
  • [ ] list_create
  • [ ] list_delete
  • [ ] list_add
  • [ ] list_remove

ihabunek avatar Nov 21 '23 11:11 ihabunek

Agree, this has been on my wishlist for a while

danschwarz avatar Nov 28 '23 01:11 danschwarz