-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support globs #29
base: master
Are you sure you want to change the base?
Support globs #29
Conversation
d200a6e
to
6813ecc
Compare
This is a breaking change if you upload a directory outside of your own CWD. In that case, you also have to pass |
README.md
Outdated
@@ -24,7 +24,13 @@ $ npm install @finn-no/cdn-uploader -g | |||
|
|||
Actual usage: | |||
```sh-session | |||
$ cdn-uploader /tmp/cdn-assets -a test-app | |||
$ cdn-uploader /tmp/cdn-assets --cwd /tmp/cdn-assets -a test-app |
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.
I would expect the --cwd
option would imply this should be written as:
cdn-uploader ./ --cwd /tmp/cdn-assets -a test-app
README.md
Outdated
### Pattern | ||
You cna pass in a pattern. E.g. to only upload javascript files: | ||
```sh-session | ||
$ cdn-uploader '/tmp/cdn-assets/**/*.js' -a test-app |
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.
not correct? pwd option or make it relative?
Previously the requirement was that you had to provide a directory, with explicit feedback in the console if the provided path was not a directory. This is somewhat changed now. What happens if you specify an invalid glob or a folder that does not exist? Will the user get any feedback at all? Maybe there should be some explicit feedback if your pattern does not match any files? |
Indeed, should assure the command fails if nothing matches. |
4c60492
to
fcdb79d
Compare
Fixes #11
Fixes #11