-
Notifications
You must be signed in to change notification settings - Fork 94
Add a glob pattern as an input example #133
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
Conversation
It wasn't clear to me whether I could pass a directory of files as an input—it turns out I can! This PR adds an example command to the README, showing how to use a glob pattern as the input for the CLI. This is a terrific tool, thanks!
RyanZim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, but I don't want the big heading. Put this example right after the first one with the text
Also accepts globs
or something like that.
Also, if you want to recursively read a directory, do postcss src/**/*.css.
Perhaps rename the directory to src or css?
- use blockquotes - add a recursive read example
|
Thanks, @RyanZim. Updated docs per your suggestions. |
RyanZim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to be so picky 😉
README.md
Outdated
| postcss [input.css] [OPTIONS] [-o|--output output.css] [-w|--watch] | ||
| ``` | ||
|
|
||
| > The input may also be a glob: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use normal text, not a blockquote. (No >)
README.md
Outdated
| postcss src/*.css [OPTIONS] | ||
| ``` | ||
|
|
||
| > Recursively read a directory: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
|
Np! Updated again. |
It wasn't clear to me whether I could pass a directory of files as an input—it turns out I can! This PR adds an example command to the README, showing how to use a glob pattern as the input for the CLI.
This is a terrific tool, thanks!