-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add directory support on CLI #14
base: master
Are you sure you want to change the base?
Conversation
src/coverage/inject/cli.cr
Outdated
end | ||
end | ||
end | ||
|
||
raise "You must choose a file to compile" unless filenames.any? | ||
raise "You must choose at least one file to compile" unless targets.any? |
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.
@anykeyh Maybe just printing this phrase is enough. Do you think it really have to be an Exception?
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.
We might use the new Log module to raise an Error message and exit the application instead?
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.
That's a good idea! I'll update it
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.
@anykeyh what do you think?
Now it's possible to pass directories to the CLI. I added a little
-h --help
option too