Support globs in CLI
See original GitHub issueSupport e.g. html-beautify -r *.html
(or htm
in my case) to replace all matching files in a directory.
Also, the commands js-beautify -r
, html-beautify -r
and css-beautify -r
could default to replacing *.js
, *.htm?(l)
and *.css
respectively.
(Use glob)
Issue Analytics
- State:
- Created 8 years ago
- Reactions:13
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Save Time Using the Command-Line: Glob Patterns and ...
The good news is that glob patterns combined with other commands will become useful tools to avoid repetitive commands.
Read more >Support for multiple files/glob patterns on cli. #75 - GitHub
This PR allows for a list of files, or a glob pattern to be used on the jsonlint cli. Ex. jsonlint app/**/*.json or...
Read more >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 >Typescript CLI - does it support globs or not? - Reddit
I'm creating a tsc command in my package.json file and all I want to do is specify a wildcard pattern so that it...
Read more >glob - Greg's Wiki
"Glob" is the common name for a set of Bash features that match or expand specific types of patterns. Some synonyms for globbing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
FYI: If using glob-run inside an npm script, make sure to enclose the glob pattern in single quotes as so:
As described in detail here:
https://medium.com/@jakubsynowiec/you-should-always-quote-your-globs-in-npm-scripts-621887a2a784
Lost 2 hours on this one critical detail.
I’ve used glob-run as a workaround in the meantime.