File indexing completed on 2024-06-23 05:03:55

0001 #!/bin/bash
0002 if [[ $1 = "ls" ]]; then
0003   #Simulate: boobank ls -q -f csv -v -s id,balance
0004   echo "id;label;balance"
0005   echo "12345@steph;;1000"
0006   echo "12345@vero;;1000"  
0007 else
0008     if [[ $5 = "12345@steph" ]]; then
0009         #Simulate: boobank -q -f csv history "47896@creditcooperatif" -s rdate,type,raw,label,amount --condition "rdate>%4" -n 99999
0010         echo "rdate;date;type;raw;label;amount"
0011         echo "2013-05-04;2013-05-04;0;TOTAL;TOTAL;-50"
0012     fi
0013     if [[ $5 = "12345@vero" ]]; then
0014         #Simulate: boobank -q -f csv history "47896@creditcooperatif" -s rdate,type,raw,label,amount --condition "rdate>%4" -n 99999
0015         echo "rdate;date;type;raw;label;amount"
0016         echo "2013-05-04;2013-05-04;0;TOTAL;TOTAL;-50"
0017     fi    
0018 fi