aight is a command-line tool for getting todo tasks quickly.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
682 B

  1. #!/bin/bash
  2. # AIGHT, v0.2
  3. board=5d57c32e1538894e6c0b66ca
  4. todolist=5d5d204dd12e9b7c9d659351
  5. doinglist=5d5d212481dcf4310fe29dfd
  6. if [[ $PWD == *trevian* ]];
  7. then
  8. # get tasks from trello
  9. todocards=$(curl -s -S "https://api.trello.com/1/list/$todolist/cards?fields=name,labels&key=$TRELLO_KEY&token=$TRELLO_TOKEN")
  10. doingcards=$(curl -s -S "https://api.trello.com/1/list/$doinglist/cards?fields=name,labels&key=$TRELLO_KEY&token=$TRELLO_TOKEN")
  11. echo "trevian tasks"
  12. echo "----------------"
  13. echo ""
  14. echo "TODO"
  15. echo $todocards | jq .[].name
  16. echo ""
  17. echo "DOING"
  18. echo $doingcards | jq .[].name
  19. else
  20. open things:///show?id=today
  21. fi