anc95 / inquirer-file-tree-selection

inquirer prompt for select a file or dir by file tree
49 stars 26 forks source link

makes `root` a more accurate parent of file tree #6

Closed hogpilot closed 4 years ago

hogpilot commented 4 years ago

Fixes #5

The proposed change does a few things:

  1. Changes .(current directory) to .(root directory)
  2. Makes .(root directory) path equal to user specified root rather than always process.cwd()
  3. Nests all other files/folders as children of root
  4. Adds an option to hideRoot, thus only rendering children in the message, and not root itself