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

Programmatic use of Ghost-CLI #194

Closed
ErisDS opened this issue May 3, 2017 · 1 comment
Closed

Programmatic use of Ghost-CLI #194

ErisDS opened this issue May 3, 2017 · 1 comment

Comments

@ErisDS
Copy link
Member

ErisDS commented May 3, 2017

Ghost-CLI's interactive UI is super-crazy-awesome for users in the most common use-cases, which is doing a 1 time install on either a new or existing server.

However, in certain cases, it's desirable to be able to call ghost-cli programmatically, rather than manually & interactively. Ordinarily, I'd say it was up to the consumer to figure out how to do this, however the way that ghost-cli's interactive UI works by rewriting the prompt makes it very hard to answer the prompts programatically with something like expect.

Therefore, I'd like to introduce a path-of-least-resistance workaround, which is to make it possible to pass in enough arguments that ghost-cli knows what you want it to do and doesn't output any further prompts.

To achieve this with the current features of Ghost-Cli I propose two additional arguments for the CLI install/setup commands:

  • sslemail, e.g. --sslemail=me@mine.com, toggle SSL setup with this address
  • start, e.g. --start or --start=false, toggles whether or not Ghost should be started
ErisDS added a commit to ErisDS/Ghost-CLI that referenced this issue May 3, 2017
refs TryGhost#194

- If --sslemail is provided, use that instead of prompting
- Makes it easier to call ghost programmatically
ErisDS added a commit to ErisDS/Ghost-CLI that referenced this issue May 3, 2017
refs TryGhost#194

- If --sslemail is provided, use that instead of prompting
- Makes it easier to call ghost programmatically
ErisDS added a commit to ErisDS/Ghost-CLI that referenced this issue May 3, 2017
refs TryGhost#194

- if --start is provided, use that instead of prompting
- makes it easier to call ghost install/ghost setup programmatically
acburdine pushed a commit that referenced this issue Jun 9, 2017
refs #194

- if --start is provided, use that instead of prompting
- makes it easier to call ghost install/ghost setup programmatically
acburdine pushed a commit that referenced this issue Jun 13, 2017
)

refs #194
- If --sslemail is provided, use that instead of prompting
- Makes it easier to call ghost programmatically
@acburdine
Copy link
Member

acburdine commented Jun 19, 2017

Going to close this for now as the two merged PRs have fixed this issue for now - Further improvements upon this will happen as a part of #179

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