shower / cli

Command line interface for Shower
Other
35 stars 6 forks source link

Cannot overwrite existing folder #14

Closed pepelsbey closed 5 years ago

pepelsbey commented 6 years ago

Steps to reproduce:

  1. shower create semantics
  2. Wait…
  3. shower create semantics
  4. Do you want to overwrite it? Yes
~/Documents/Пепелсбей.net/Сайт/pres
$ shower create semantics
? The semantics dir already exists. Do you want to overwrite it? Yes
shower create [<directory>]

- Create a new project

Positionals:
  directory

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Error: Cannot delete files/folders outside the current working directory. Can be overriden with the `force` option.
    at safeCheck (/Users/pepelsbey/.nvm/versions/node/v10.10.0/lib/node_modules/shower-cli/node_modules/del/index.js:18:9)
    at mapper (/Users/pepelsbey/.nvm/versions/node/v10.10.0/lib/node_modules/shower-cli/node_modules/del/index.js:33:4)
    at Promise.resolve.then.el (/Users/pepelsbey/.nvm/versions/node/v10.10.0/lib/node_modules/shower-cli/node_modules/p-map/index.js:46:16)
mrdimidium commented 6 years ago

Hmm, I can not repoduce it. Which version do you use?

pepelsbey commented 6 years ago
mrdimidium commented 6 years ago

And operating system?

pepelsbey commented 6 years ago

macOS Mojave, 10.14

mrdimidium commented 5 years ago

Hey @pepelsbey. Do you still face this problem on the latest version?

pepelsbey commented 5 years ago

Tried both Y and N options, it works as expected now. Thank you!