WIP: use go-moolticute package
Follow-up of https://github.com/raoulh/mc-cli/issues/8#issuecomment-981676558, to have some code to discuss about.
I am using some features from go1.13 regarding error handling, but I can refactor it if you prefer.
thanks, I will need some time to review and test everything. I'm a bit busy right now
I have have a WIP for a simpler ssh agent: https://git.sr.ht/~oliverpool/go-moolticute/tree/agent
It works (mc-agent -- ssh-add -L to list the identities for instance), but it needs some polishing to arrive at feature-parity.
It "simply" implements the agent.Agent interface (code mostly copied from agent.NewKeyring) and leverages agent.ServeAgent for the wiring.
The customization is at the end: https://git.sr.ht/~oliverpool/go-moolticute/tree/agent/item/ssh/agent.go#L316
I will be on holidays for the next two weeks, so not working further on it until January :smile: