The main function - whuch runs aptly commands - has been taken out from main.go and included to the cmd package. This is useful for the aptly script run command, which should use that behaviour.