Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

spy executable

  • Loading branch information...
commit 1c3352823a920b9c65e1fcc0a3b96d6b61fa2813 1 parent edba450
@kerbyfc authored
Showing with 15 additions and 6 deletions.
  1. +14 −5 bin/spy
  2. +1 −1  bin/spytest.js
View
19 bin/spy
@@ -5,22 +5,31 @@ Spier = require('../spier.js');
optkeys = {
'-i': 'ignore',
'--ignore': 'ignore',
+ '-if': 'ignore_flags',
+ '--i-flags': 'ignore_flags',
'-d': 'dir',
'--dir': 'dir',
'-e': 'existing',
'--existing': 'existing',
+ '-p': 'pattern',
+ '--pattern': 'pattern',
'-f': 'filter',
+ '-ff': 'filter_flags',
+ '--f-flags': 'filter_flags',
'--filter': 'filter',
'-h': 'help',
'--help' : 'help'
};
keys = {
- 'dir': '• -d --dir <path> - specify directory to spy on\n',
- 'ignore': ' -i --ignore <regex> - explains what files will be ignored\n',
- 'filter': ' -f --filter <regex> - explains what files will be processed. \n NOTE: applying after -i',
- 'existing': ' -e --existing - fire create events for existing files on start \n',
- 'help': ' -h --help show this message\n'
+ 'dir': '• -d --dir <String> - Directory path to spy for\n Just use " -d . " to spy for current directory \n',
+ 'ignore': ' -i --ignore <RegExp> - Files to be ignored \n If you want to ignore git and idea folders, then specify `.idea\\|.git`\n',
+ 'ignore_flags': ' -if --i-flags <String> - RegExp flags for -i option (`g`,`i`) \n',
+ 'filter': ' -f --filter <RegExp> - Files to be processed \n If you want to spy for files changes in `app` and `bin` folders, just specify: `app\\/\\|bin\\/`. Take effect after after -i \n',
+ 'filter_flags': ' -ff --f-flags <String> - RegExp flags for -f option (`g`,`i`) \n',
+ 'pattern': ' -p --pattern <string> - Minimatch pattern, that explains what files will be processed. See [https://github.com/isaacs/minimatch] \n',
+ 'existing': ' -e --existing - Fire create events for existing files on start \n Use if applying of `create` callbacks on existing files is needed\n',
+ 'help': ' -h --help - Show this help\n'
};
args = process.argv.slice(2);
View
2  bin/spytest.js
@@ -24,7 +24,7 @@ keys = {
'ignore': ' -i --ignore <RegExp> - Files to be ignored \n If you want to ignore git and idea folders, then specify `.idea\\|.git`\n',
'ignore_flags': ' -if --i-flags <String> - RegExp flags for -i option (`g`,`i`) \n',
'filter': ' -f --filter <RegExp> - Files to be processed \n If you want to spy for files changes in `app` and `bin` folders, just specify: `app\\/\\|bin\\/`. Take effect after after -i \n',
- 'filter_flags': ' -if --i-flags <String> - RegExp flags for -f option (`g`,`i`) \n',
+ 'filter_flags': ' -ff --f-flags <String> - RegExp flags for -f option (`g`,`i`) \n',
'pattern': ' -p --pattern <string> - Minimatch pattern, that explains what files will be processed. See [https://github.com/isaacs/minimatch] \n',
'existing': ' -e --existing - Fire create events for existing files on start \n Use if applying of `create` callbacks on existing files is needed\n',
'help': ' -h --help - Show this help\n'
Please sign in to comment.
Something went wrong with that request. Please try again.