This is a pure refactor (no implementation changes) and makes the code of the main package clearer, better to follow, and adds a separation of concerns.
The changes include:
move CLI command anonymous functions to private functions
separate CLI flags (main.go) and command implementation into own files (now in sync.go and registry.go) .
move/facade the "fetch" code from the sync command to it's own function
This is a pure refactor (no implementation changes) and makes the code of the
main
package clearer, better to follow, and adds a separation of concerns.The changes include:
main.go
) and command implementation into own files (now insync.go
andregistry.go
) .sync
command to it's own function