Skip to content

Commit a0de1f8

Browse files
author
Jordan Hotmann
committed
Updated readme and yargs with new wizard options
1 parent 51c8b1a commit a0de1f8

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ The new file name does not need to contain a file extension. If you do not speci
2020

2121
### Options
2222
```-i```, ```--info```: View online help
23+
```-w```, ```--wizard```: Run a wizard to guide you through renaming files
2324
```-u```, ```--undo```: Undo previous rename operation
2425
```-r "RegEx"```: See [RegEx](#regex) section for more information
2526
```-f```, ```--force```: Force overwrite without prompt when output file name already exists
2627
```-s```, ```--sim```: Simulate rename and just print new file names
2728
```-n```, ```--noindex```: Do not append an index when renaming multiple files. Use with caution.
28-
```-v```, ```--verbose```: Print all rename operations completed. Prints the same information as the -s option but goes through with the renames.
29+
```-v```, ```--verbose```: Print all rename operations to be completed and confirm before proceeding
2930
```--notrim```: Do not trim whitespace at beginning or end of ouput file name
3031
```-h```, ```--help```: Show help
3132

@@ -112,11 +113,15 @@ Whenever you run rename for the first time a file ```~/.rename/replacements.js``
112113
- yargs https://github.com/yargs/yargs
113114
- globby https://github.com/sindresorhus/globby
114115
- fs-extra https://github.com/jprichardson/node-fs-extra
115-
- file-exists https://github.com/scottcorgan/file-exists
116116
- prompt-sync https://github.com/0x00A/prompt-sync
117117
- lodash https://lodash.com/
118118
- node-dateformat https://github.com/felixge/node-dateformat
119119
- named-js-regexp https://github.com/edvinv/named-js-regexp
120120
- num2fraction https://github.com/yisibl/num2fraction
121121
- jpeg-exif https://github.com/zhso/jpeg-exif
122122
- opn https://github.com/sindresorhus/opn
123+
- path-exists https://github.com/sindresorhus/path-exists
124+
- chalk https://github.com/chalk/chalk
125+
- cli-clear https://github.com/stevenvachon/cli-clear
126+
- inquirer https://github.com/SBoudrias/Inquirer.js
127+
- clipboardy https://github.com/sindresorhus/clipboardy

bin.js

100644100755
+5-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ const argv = yargs
3131
alias: 'info',
3232
boolean: true,
3333
describe: 'View online help'
34+
}, 'w': {
35+
alias: 'wizard',
36+
boolean: true,
37+
describe: 'Run a wizard to guide you through renaming files'
3438
}, 'u': {
3539
alias: 'undo',
3640
boolean: true,
@@ -54,7 +58,7 @@ const argv = yargs
5458
}, 'v': {
5559
alias: 'verbose',
5660
boolean: true,
57-
describe: 'Print all rename operations completed'
61+
describe: 'Print all rename operations to be completed and confirm before proceeding'
5862
}, 'notrim': {
5963
boolean: true,
6064
describe: 'Do not trim whitespace at beginning or end of ouput file name'

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"opn": "^5.1.0",
3333
"path-exists": "^3.0.0",
3434
"prompt-sync": "^4.1.4",
35-
"rx": "^4.1.0",
3635
"yargs": "^8.0.2"
3736
}
3837
}

0 commit comments

Comments
 (0)