citadel

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

fuzz-trello-sprint (430B)


      1 #!/usr/bin/env bash
      2 
      3 set -eo pipefail
      4 
      5 card=$(trello-cards | fuzzer "$1")
      6 #list=$(trello show-lists -b $board | grep ID | fuzzer "$1" | sed -En 's,^([^(]+) \(ID:.*,\1,p')
      7 #card=$(trello show-cards -b $board -l "$list" | grep '^\*' | fzf)
      8 card_id=$(trello-card-id <<<"$card")
      9 card_name=$(cut -d- -f 2- <<<"$card")
     10 list=$(cut -d\* -f1 <<<"$card")
     11 echo "trello card-details $card_id | less --quit-if-one-screen # $list > $card_name"