Package: toot
Version: 0.27.0-1
Severity: wishlist
X-Debbugs-Cc: debbug.t...@sideload.33mail.com

The “auth” command outputs a banner line followed by an
asterisk-prefixed list of accounts. It’s readable to humans but
requires some extra work to make usable for scripts. A common need is
to see the notifications on all accounts. For that I run:

  $ toot auth | awk '/^[*]/{print $2}' | while read acct; do toot notifications 
-r -u "$acct"; done

The status quo of human-readable output could be beautified at any
point, or perhaps more information could be added to the auth output
in the future. Whenever that changes, it may break scripts and
complicate the above hack to act on all accounts.

So I suggest adding a “--raw” option of sorts to make the awk command
pipe above unnecessary.

-- System Information:
Debian Release: 11.5
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'testing'), (990, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-19-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages toot depends on:
ii  python3           3.9.2-3
ii  python3-bs4       4.9.3-1
ii  python3-requests  2.25.1+dfsg-2
ii  python3-urwid     2.1.2-1
ii  python3-wcwidth   0.1.9+dfsg1-2

toot recommends no packages.

toot suggests no packages.

-- no debconf information

Reply via email to