Support for globbing?
See original GitHub issueJust tried this out with npm install -g cash
on my Ubuntu box with node 5.3. It seems pretty cool! I couldn’t get any support for globbing, however. Not sure if this is a bug, or if it hasn’t been implemented yet. I saw that you’re using the glob module in package.json, but I was surprised that the CLI didn’t offer support for it.
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Bash Globbing Tutorial - Linux Hint
The Bash shell feature that is used for matching or expanding specific types of patterns is called globbing. Globbing is mainly used to...
Read more >begin/globbing - GitHub
The term "globbing", also referred to as "glob matching" or "filepath expansion", is a programming concept that describes the process of using wildcards, ......
Read more >18.2. Globbing
Instead, globbing recognizes and expands wild cards. Globbing interprets the standard wild card characters [2] -- * and ?, character lists in square...
Read more >Using Glob Expressions Throughout the LogicMonitor Portal
Many fields throughout your account support glob expressions. Fields that support glob expressions are usually marked with an asterisk:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Glob is now working for
ls
in the latest release.I didn’t add it to the
preparser
yet, as I would like to discuss this with you. Not all commands should accept globs, and if a different type of parameter than files are expected, this could cause some weird behavior.Perhaps we could pass in a parameter to the
preparser
likeglob: true
, and then normalize all input parsing for those commands.Have you thought about globbing at the shell level, instead of in individual commands? ShellJS was previously doing it for each command, but I felt like that was always fighting with bash compatibility. In traditional shells, all globbing happens in the shell itself (so
ls
never sees*.json
, it actually seespackage.json
).