Skip to content

Commit d598a6e

Browse files
committed
doc: add enableGoUpperDirector api doc
1 parent 6622438 commit d598a6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ inquirer.prompt({
2121
```
2222

2323
### Options
24-
Takes `type`, `name`, `message`, [`filter`, `validate`, `transformer`, `default`, `pageSize`, `onlyShowDir`, `onlyShowValid`, `hideChildrenOfValid`, `root`, `hideRoot`, `multiple`] properties.
24+
Takes `type`, `name`, `message`, [`filter`, `validate`, `transformer`, `default`, `pageSize`, `onlyShowDir`, `onlyShowValid`, `hideChildrenOfValid`, `root`, `hideRoot`, `multiple`, `enableGoUpperDirector`] properties.
2525

2626
The extra options that this plugin provides are:
2727
- `onlyShowDir`: (Boolean) if true, will only show directory. Default: false.
@@ -30,6 +30,7 @@ The extra options that this plugin provides are:
3030
- `hideChildrenOfValid`: (Boolean) if true, will hide children of valid directories (if `validate` is provided). Default: false.
3131
- `transformer`: (Function) a hook function to transform the display of directory or file name.
3232
- `multiple`: (Boolean) if true, will enable to select multiple files. Default: false.
33+
- `enableGoUpperDirector`: (Boolean) Show `..` in inside root dir, and the user can press **space** on it to go upper directory. Default: false.
3334

3435
When `multiple` is enabled, `default` should be `string[]` type, otherwise it's `string` type.
3536
### Typescript Support

0 commit comments

Comments
 (0)