writeas / writeas-cli

Command line client for Write.as / WriteFreely
https://write.as/apps/cli
GNU General Public License v3.0
113 stars 20 forks source link

claim posts #34

Closed ghost closed 5 years ago

thebaer commented 5 years ago

Thanks @robjloranger, this is great.

I found a nil pointer panic when a post failed to be claimed. Since it's sorta difficult to make these errors happen, I just went ahead and fixed it.

I like that you included logs with the status of each post. I just tweaked it so successes only show up when running with the -v (verbose) flag. Errors will still always show up on os.Stderr. But if all goes well when someone runs writeas claim, there will be no output -- which is the same as writeas delete and other subcommands.

thebaer commented 5 years ago

No problem :+1: merging now.