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: create prod-ready quickstart command #75

Merged
merged 6 commits into from
Mar 27, 2024

Conversation

dbolson
Copy link
Contributor

@dbolson dbolson commented Mar 27, 2024

Create container model to hold quickstart steps.

Copy link

This pull request has been linked to Shortcut Story #238058: create flag with name in setup wizard.


func runQuickStart(client flags.Client) func(*cobra.Command, []string) error {
return func(cmd *cobra.Command, args []string) error {
f, err := tea.LogToFile("debug.log", "")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created a ticket to set up configurable logging.

@@ -12,7 +12,7 @@ import (
)

var setupCmd = &cobra.Command{
Use: "setup",
Use: "setup-TOREMOVE",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can keep this in so we can run the two setups in parallel for comparison until the new one is done.

// represent a step in the quick-start flow.
type ContainerModel struct {
currentStep step
err error
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We'll use these from the model that creates the flag so we can display them later.

return ""
}

if m.err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was trivial enough to add. Another ticket will make it look nice.

@sunnyguduru
Copy link
Contributor

Make sure to add a title the conforms to conventional commit

@dbolson dbolson changed the title Create prod-ready quickstart command feat: Create prod-ready quickstart command Mar 27, 2024
@dbolson dbolson changed the title feat: Create prod-ready quickstart command feat: create prod-ready quickstart command Mar 27, 2024
Copy link
Contributor

@k3llymariee k3llymariee left a comment

Choose a reason for hiding this comment

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

ty for getting the container setup!

@dbolson dbolson merged commit 7768bfa into main Mar 27, 2024
2 checks passed
@dbolson dbolson deleted the sc-238058/add-create-flag-setup--new-setup branch March 27, 2024 20:47
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.

3 participants