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 for globbing?

See original GitHub issue

Just 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:closed
  • Created 8 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dthreecommented, Feb 28, 2016

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 like glob: true, and then normalize all input parsing for those commands.

1reaction
nfischercommented, Feb 25, 2016

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 sees package.json).

Read more comments on GitHub >

github_iconTop 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 >
Globbing
Join the market leader, join Globbing at www.globbing.com.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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