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

Support glob patterns in CLI flags #29

Closed
h2non opened this issue Jan 1, 2015 · 5 comments
Closed

Support glob patterns in CLI flags #29

h2non opened this issue Jan 1, 2015 · 5 comments

Comments

@h2non
Copy link
Contributor

h2non commented Jan 1, 2015

It could be really useful introduce support for glob pattern expressions to do something like:

stubby -d test/fixtures/**/*.{yaml,json}
@mrak
Copy link
Owner

mrak commented Jan 1, 2015

I've been thinking on this, too. It might make the most sense to remove the -d,--data flag and simply accept any number of files as the command's arguments. Existing flags would be unchanged

@h2non
Copy link
Contributor Author

h2non commented Jan 2, 2015

That will be great! May be I could have time this weekend provide support for it :D

@mrak
Copy link
Owner

mrak commented Jan 10, 2015

For the meantime you can try cat and shell process substitution:

stubby -d <(cat data/**/*.{yaml,json})

I'll warn you ahead of time that this may break if you use the -w,--watch flag

@mrak
Copy link
Owner

mrak commented Jan 21, 2015

@h2non did using cat work for you?

@h2non
Copy link
Contributor Author

h2non commented Jan 22, 2015

Yeah! Closing

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

No branches or pull requests

2 participants