insanum / sncli

Simplenote CLI
MIT License
396 stars 34 forks source link

CLI should return failing status when something doesn't work #51

Open MatthiasKauer opened 6 years ago

MatthiasKauer commented 6 years ago

Hi, I am trying to use sncli as a backup solution for simplenotes in addition to the main browsing/editing which is already going ok.

I can use sncli export the entire database to json just fine. However, I noticed that when I remove my credentials file, sncli export or sncli sync still succeed from a bash point of view.

Inside sncli, I get: "status 400, check credentials". But from the command line, it looks as follows:

matt@hp840:~/venv $ sncli sync
matt@hp840:~/venv $ echo $?
0

From my understanding, the program should return 1 (or not 0) in such a situation. What do you think?

Best regards, Matthias