Skip to content

feat: quickstart --from flag #1291

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

Merged
merged 8 commits into from
Mar 6, 2025
Merged

feat: quickstart --from flag #1291

merged 8 commits into from
Mar 6, 2025

Conversation

adaam2
Copy link
Member

@adaam2 adaam2 commented Feb 26, 2025

What

Introduces a new --from flag to speakeasy quickstart which will allow for easier handoff from the Speakeasy Sandbox to the CLI:

speakeasy quickstart --from wandering-traveller-82dj0

Demo

CleanShot.2025-03-05.at.15.44.47.mp4
CleanShot.2025-03-05.at.15.47.06.mp4

@adaam2 adaam2 changed the title feat: blueprint flag feat: quickstart template / blueprint flag Feb 26, 2025
@adaam2 adaam2 changed the title feat: quickstart template / blueprint flag feat: quickstart --from flag Mar 5, 2025
@adaam2 adaam2 force-pushed the feat/quickstart-template-flag branch from 4a733f9 to 1f3be6e Compare March 5, 2025 15:40
@@ -116,6 +120,11 @@ func quickstartExec(ctx context.Context, flags QuickstartFlags) error {
quickstartObj.Defaults.TargetType = &flags.TargetType
}

if flags.From != "" {
quickstartObj.Defaults.Blueprint = &flags.From
quickstartObj.IsUsingBlueprint = true
Copy link
Contributor

Choose a reason for hiding this comment

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

Blueprint isn't super descriptive?

Copy link
Contributor

@mfbx9da4 mfbx9da4 Mar 6, 2025

Choose a reason for hiding this comment

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

This would be cleaner if we didn't have this special case, instead if we're using the from argument -> set the schema URL https://app.speakeasy.com/v1/schema/store/{ID}

@adaam2 adaam2 force-pushed the feat/quickstart-template-flag branch from 1f3be6e to e5940f1 Compare March 6, 2025 11:25
@adaam2 adaam2 merged commit 7351fd0 into main Mar 6, 2025
4 checks passed
@adaam2 adaam2 deleted the feat/quickstart-template-flag branch March 6, 2025 12:08
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