Skip to content

Commit

Permalink
add pretty text
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio14 committed Nov 18, 2015
1 parent 26c70b4 commit a47061c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/iotronic
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ fi

case "$1" in

list) curl $BASE/boards/
list) curl -sS $BASE/boards/ | python -m json.tool
echo "";
;;
create-board) curl -H "Content-Type: application/json" -X POST $BASE/boards/ -d '{"code":"'"$2"'"}'
create-board) curl -sS -H "Content-Type: application/json" -X POST $BASE/boards/ -d '{"code":"'"$2"'"}' | python -m json.tool
echo "";
;;
delete-board) curl -X DELETE $BASE/boards/$2
delete-board) curl -sS -X DELETE $BASE/boards/$2 | python -m json.tool
echo "";
;;
show) curl $BASE/boards/$2
show) curl -sS $BASE/boards/$2 | python -m json.tool
echo "";
;;
*) echo "list - create-board - delete-board - show"
Expand Down

0 comments on commit a47061c

Please sign in to comment.