question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support globs in CLI

See original GitHub issue

Support 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:closed
  • Created 8 years ago
  • Reactions:13
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
tajicommented, Jul 16, 2017

FYI: If using glob-run inside an npm script, make sure to enclose the glob pattern in single quotes as so:

"html-format": "glob-run html-beautify -r '**/*.html'",

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.

2reactions
1j01commented, Oct 14, 2015

I’ve used glob-run as a workaround in the meantime.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found