-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
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", "") |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
Make sure to add a title the conforms to conventional commit |
There was a problem hiding this 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!
* Add create flag step * Add flag name validation for quickstart
Create container model to hold quickstart steps.