mc-agent icon indicating copy to clipboard operation
mc-agent copied to clipboard

WIP: use go-moolticute package

Open oliverpool opened this issue 4 years ago • 2 comments

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.

oliverpool avatar Nov 30 '21 14:11 oliverpool

thanks, I will need some time to review and test everything. I'm a bit busy right now

raoulh avatar Dec 07 '21 08:12 raoulh

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:

oliverpool avatar Dec 22 '21 17:12 oliverpool