remote-helper: prefactor to be more testable
To introduce new remote-helper changes like ‘dont push by default’ and ‘self’ / ‘rad’ remotes, this crate has been refactored to ease testing.
- the command parsing has been refactored into a sans i/o esque typed parser.
- the radicle node interactions have been hoisted into a
NodeSessiontrait. - the git
send_packandfetch_packinteractions have hoisted intoGitServicetrait. - the direct stdin/out printing has been replaced with
BufReadandWritertraits.
To introduce new remote-helper changes like ‘dont push by default’ and ‘self’ / ‘rad’ remotes, this crate has been refactored to ease testing.
- the command parsing has been refactored into a sans i/o esque typed parser.
- the radicle node interactions have been hoisted into a
NodeSessiontrait. - the git
send_packandfetch_packinteractions have hoisted intoGitServicetrait. - the direct stdin/out printing has been replaced with
BufReadandWritertraits.
Continuation of the refactoring.
- Reorder and squash into slightly bigger but still cohesive commits.
- Reword commit messages.