Print some brief output for the success case of all commands.
Notes
This was mostly triggered by #12. When I run a command and I don't get any output at all I get tend to get suspicious.
I just added some "success" message which references the provided name/pin.
I mostly don't know what I'm doing when I write Rust so... 😅
TODOs
In case of the add command i am printing a Pin but the the Display implementation isn't exactly pretty and shouldn't be shown to the user like that. The implementation is part of the mkPin macro. I guess the different pin types need custom implementations at which point the macro would probably not make sense anymore?
npins init
$ npins init -d /tmp/npins
Successfully written initial files to '/tmp/npins'
Print some brief output for the success case of all commands.
Notes
TODOs In case of the
add
command i am printing aPin
but the theDisplay
implementation isn't exactly pretty and shouldn't be shown to the user like that. The implementation is part of themkPin
macro. I guess the different pin types need custom implementations at which point the macro would probably not make sense anymore?npins init
npins add
npins update
npins update
npins remove