citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

fedi-timeline (272B)


      1 #!/usr/bin/env bash
      2 
      3 set -eou pipefail
      4 
      5 timeline=${1:-home}
      6 
      7 curl -sL -H "Authorization: Bearer $FEDI_TOKEN" "$FEDI_ENDPOINT/api/v1/timelines/$timeline" |
      8 jq -r '.[] | [.account.username, .content] | @tsv' |
      9 sed 's,<[^>]*>,,g' |
     10 column -t -s $'\t' |
     11 sed 's,$,\n,g' |
     12 less