Open oliverfoster opened 7 years ago
@oliverfoster I like this idea. So just to confirm, we'd need to update the various commands (install
, register
, search
etc) to check for two main cases: in the first case registry
is just a string; in the second case registry
is a hash of paths to use for each of the various commands (we'd need a default
path presumably so that there isn't the need to provide paths for every command?)
or make sure it's always an object up front and change everything else accordingly? save having type switching logic in all the commands?
https://github.com/adaptlearning/adapt-cli/blob/issue/v4/lib/Constants.js#L36 can drop the .publish
this means we can have multiple search registries.
https://github.com/adaptlearning/adapt-cli/blob/issue/v4/lib/commands/register.js#L17 < would need to updated accordingly
this allows for: