Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghost uninstall --no-prompt causes error #276

Closed
ErisDS opened this issue Jul 5, 2017 · 0 comments · Fixed by #286
Closed

ghost uninstall --no-prompt causes error #276

ErisDS opened this issue Jul 5, 2017 · 0 comments · Fixed by #286
Labels

Comments

@ErisDS
Copy link
Member

ErisDS commented Jul 5, 2017

This isn't an important use case for pre 1.0.0, just flagging up that this behaviour is a bit odd:

ghost uninstall --no-prompt
WARNING: Running this command will delete all of your themes, images, data, and any files related to this ghost instance!
There is no going back!
/usr/lib/node_modules/ghost-cli/node_modules/yargs/yargs.js:1079
      else throw err
           ^

Error: Prompts have been disabled, please provide options via command line flags
    at UI.prompt (/usr/lib/node_modules/ghost-cli/lib/ui/index.js:116:19)
    at UninstallCommand.run (/usr/lib/node_modules/ghost-cli/lib/commands/uninstall.js:15:30)
    at Function._run (/usr/lib/node_modules/ghost-cli/lib/command.js:183:48)
    at Object.handler (/usr/lib/node_modules/ghost-cli/lib/command.js:108:22)
    at Object.self.runCommand (/usr/lib/node_modules/ghost-cli/node_modules/yargs/lib/command.js:233:22)
    at Object.Yargs.self._parseArgs (/usr/lib/node_modules/ghost-cli/node_modules/yargs/yargs.js:990:30)
    at Object.Yargs.self.parse (/usr/lib/node_modules/ghost-cli/node_modules/yargs/yargs.js:532:23)
    at Object.run (/usr/lib/node_modules/ghost-cli/lib/bootstrap.js:153:14)
    at Object.<anonymous> (/usr/lib/node_modules/ghost-cli/bin/ghost:12:11)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:389:7)
acburdine added a commit to acburdine/Ghost-CLI that referenced this issue Jul 5, 2017
closes TryGhost#276, refs TryGhost#280
- fix various instances where the --no-prompt option was not correctly respected,  resulting in an error
acburdine added a commit that referenced this issue Jul 6, 2017
closes #276, refs #280
- fix various instances where the --no-prompt option was not correctly respected,  resulting in an error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant