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

Detect being inside of Ghost #51

Closed
ErisDS opened this issue Oct 3, 2016 · 0 comments
Closed

Detect being inside of Ghost #51

ErisDS opened this issue Oct 3, 2016 · 0 comments

Comments

@ErisDS
Copy link
Member

ErisDS commented Oct 3, 2016

With all the change around the commands for installing, building, deving & releasing Ghost, mistakes are bound to happen. E.g. today I tried to run ghost setup instead of gulp setup and got the following:

Command 'setup' not found! Type ghost help for usage.

Soon, we'll have a ghost setup command, so this could have done something weird!

At the moment ghost update is smart enough to output the following message:

Working directory is not a valid Ghost installation. Please run 'ghost update' again within a valid Ghost installation.

I think it would be a great enhancement to have ghost-cli tell me when I'm being dumb and trying to run a ghost command inside of ghost itself (e.g. a clone or a download). The simplest marker for this is if there is a package.json file with name ghost. If you find that, I probably didn't mean to run a ghost command.

In this case, it'd be good for all commands to output a message like:

ghost commands don't work inside of a clone or download, did you mean gulp?

@acburdine acburdine added this to the 1.0.0-alpha.4 milestone Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants