Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve "bit list" to support wildcards #1683

Closed
davidfirst opened this issue May 29, 2019 · 1 comment
Closed

improve "bit list" to support wildcards #1683

davidfirst opened this issue May 29, 2019 · 1 comment

Comments

@davidfirst
Copy link
Member

Expected Behavior

Running bit list with wildcards would list only components matching the wildcard.

Actual Behavior

Not supported.

Implementation details

currently bit list shows the local scope components and bit list remote-scope shows the remote components. So, we can't use the main argument for the wildcard as it is used for showing remote-scope.
My suggestion is to add a new flag --namespace <string>, which will accept wildcards.
E.g.
bit list --namespace utils/* shows all components of utils namespace in the local scope.
bit list remote-scope --namespace ui/* shows all components of ui namespace in the remote scope.

Most of the work already implemented as part of #1681.
It's undocumented, but currently, running bit list scope/ui/* for example, shows only ui collection of the remote-scope. I'd like to extend the functionality to work for the local scope as well, and for this, we'll need a new flag.

@GiladShoham , @itaymendel , please let me know if you're good with the suggestion above.

@davidfirst
Copy link
Member Author

Implemented in #1861.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant