Skip to content

#39 Support to multiple command source directories#41

Merged
erikaheidi merged 1 commit intomainfrom
command-sources
May 31, 2022
Merged

#39 Support to multiple command source directories#41
erikaheidi merged 1 commit intomainfrom
command-sources

Conversation

@erikaheidi
Copy link
Copy Markdown
Member

This PR introduces support to multiple command source directories. With this change, it is possible to pass an array of paths instead of a single string to the config, and the autoloader will pick up command namespaces from all configured paths.

Strings are still allowed as we added a check to make sure we transform them into arrays before registering the command registry service. So no backwards compatibility issues.

The motivation behind this update is to allow commands to be shared and reused more easily, which in turn will facilitate extending Minicli.

@erikaheidi erikaheidi merged commit d0b8f64 into main May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant