Ah yes, now i remember the variables and you reminded me i had my own branch of the CLI THANKS
Just having a play at modifying my own and this is what i came up with to keep it stable (after i merged with your 0.0.16 version)
https://github.com/KevCJones/adapt-cli/tree/0.0.161
I've not managed to test this yet though, my registry is behind a firewall until i get to work. I might need to tweak the install command code but the principle is simple enough, i've offered a secondary (alternative) REGISTRY in constants.js which will perform a search or install check.
Registry: process.env.ADAPT_REGISTRY || 'http://adapt-bower-repository.herokuapp.com/', //A
RegistryAlt: process.env.ADAPT_REGISTRY_ALT || 'http://adapt-bower-repository.herokuapp.com/', //B
Search - search A and then B unless B==A
Install - try A then try B unless A resolves or A==B
I guess i'm just trying to keep it simple and assme the likely requirement is chances are i'll only have one private registry [?], if i was being flexible i could of added an array of 'alternatives' which it would traverse and perform search and installs... the same way as this.
I didn't see any point in extending the other commands, the use case for alternative repos are not adapts responsibility to create and add content to [only search and install from]?
What do you recon? Elegant or Hacky ;)