Bonsoir,
thanks for your work on this, I adapted your code to try to be simpler and more idiomatic go.
I made the following modifications:
- use go modules
- use very few external dependencies (2)
- divide the code in two parts: library to talk to the deamon, CLI tool (which uses the library) to get the password from the device
https://git.sr.ht/~oliverpool/go-moolticute (doc: https://pkg.go.dev/git.sr.ht/~oliverpool/go-moolticute)
Your CLI tools do much more, but I think it would be nice for the ecosystem to have an importable library.
Do you think it would be a good move to have an official github.com/mooltipass/go-moolticute package, which could be imported by many other tools? (mc-cli, mc-get, ...)
This could also be a good opportunity to add some documentation reference (see mooltipass/moolticute#934 ;)
I would be willing to help this effort if you want.
Bonsoir,
thanks for your work on this, I adapted your code to try to be simpler and more idiomatic go.
I made the following modifications:
https://git.sr.ht/~oliverpool/go-moolticute (doc: https://pkg.go.dev/git.sr.ht/~oliverpool/go-moolticute)
Your CLI tools do much more, but I think it would be nice for the ecosystem to have an importable library.
Do you think it would be a good move to have an official
github.com/mooltipass/go-moolticutepackage, which could be imported by many other tools? (mc-cli,mc-get, ...)This could also be a good opportunity to add some documentation reference (see mooltipass/moolticute#934 ;)
I would be willing to help this effort if you want.