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

WIP: Project:create --template and --initialize flags #829

Conversation

shawnawsu
Copy link

@shawnawsu shawnawsu commented Aug 5, 2019

Work in progress needs additional testing for edge cases and proper error handling. Initial work to achieve:

  • Adding a --template arg to project:create that would pass a template URL to the options_url parameter of the subscription

  • If no template is provided, using the /setup/catalog API on Accounts to fetch a catalog file and allow the user to pick a template from the CLI

  • Adding a --initialize flag to project:create that would execute the initialization of your project for you from the project_options.initialize key, as Console does, if you supplied a template

This relies on updates to the client php library.

$subscription = $this->api()->getClient()
->createSubscription(
$options['catalog'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Push to the back of the arg list.

@shawnawsu
Copy link
Author

We're moving forward with #831 so this can be closed.

@shawnawsu shawnawsu closed this Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants