Skip to content
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 a CLI #59

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add a CLI #59

wants to merge 2 commits into from

Conversation

nono
Copy link
Contributor

@nono nono commented Oct 24, 2018

The CLI can be used like this:

$ nsfw path/to/watch

It should help for testing nsfw and reporting issues.

Related issue: #19

@nono nono force-pushed the add-cli branch 2 times, most recently from f85def7 to b4fdcfb Compare October 24, 2018 15:05
The CLI can be used like this:

    $ nsfw path/to/watch

It should help for testing nsfw and reporting issues.
package.json Outdated
@@ -19,7 +19,9 @@
"bugs": {
"url": "https://github.com/axosoft/node-simple-file-watcher/issues"
},
"bin": "nsfw.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this bad boy into the src directory with the rest of the code. Perhaps in a new src/bin/ directory.

Then the actual target of "bin" is going to be lib/src/bin/nsfw.js

"files": [
"nsfw.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line is now irrelevant.

@implausible
Copy link
Contributor

So at work I have access only to a linux machine. Do you think it would be easy to write at least 1 test confirming that the CLI package works on each operating system as expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants