#!/bin/bash
if [[ $1 = "ls" ]]; then
    #Simulate: boobank ls -q -f csv -v -s id,balance
    echo "id;balance"
    echo "1234567A@ldlc;"
    echo "LEO-987654321@ldlc;"  
    echo "LEO-1111111A@ldlc;"    
else
    #Simulate: boobank -q -f csv history "47896@creditcooperatif" -s rdate,type,raw,label,amount --condition "rdate>%4" -n 99999
    echo "rdate;type;raw;label;amount"
    echo "2013-05-04;1;TOTAL;TOTAL;-50"
    echo "2013-05-04;2;TOTAL;TOTAL;0"
    echo "2013-05-04;3;TOTAL;TOTAL;0"
    echo "2013-05-04;4;TOTAL;TOTAL;0"
    echo "2013-05-04;5;TOTAL;TOTAL;0"
    echo "2013-05-04;6;TOTAL;TOTAL;0"
    echo "2013-05-04;7;TOTAL;TOTAL;0"
    echo "2013-05-04;8;TOTAL;TOTAL;0"
    echo "2013-05-04;9;TOTAL;TOTAL;0"
    echo "2013-05-04;10;TOTAL;TOTAL;0"
    echo "2013-05-04;11;TOTAL;TOTAL;0"
    echo "2013-05-04;12;TOTAL;TOTAL;0"
fi
