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

feat: Add project create command structure #33

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

dbolson
Copy link
Contributor

@dbolson dbolson commented Mar 19, 2024

Creates a new command project create that currently doesn't do anything but will create a new project. It requires a --data/-d flag that will be a string of JSON input.

It adds the data flag to the help description only for create, and it adds the create subcommand to the projects command description.

You can test it with

go run main.go projects create --accessToken api-cb81d3d9-ef37-4823-b906-0c6f984b1d37 --baseUri http://localhost:3000 --data "{}" -- should succeed
go run main.go projects create --accessToken api-cb81d3d9-ef37-4823-b906-0c6f984b1d37 --baseUri http://localhost:3000 -- should error with "data flag is required"

Copy link

This pull request has been linked to Shortcut Story #235698: create command to list existing environments.

@dbolson dbolson changed the title Add project create command structure feat: Add project create command structure Mar 19, 2024
@dbolson dbolson merged commit f33ebb9 into main Mar 19, 2024
2 of 3 checks passed
@dbolson dbolson deleted the sc-235698/create-project--add-cmd branch March 19, 2024 19:32
This was referenced Mar 19, 2024
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