Skip to content

Commit

Permalink
feat: inform user of selected project during onboarding
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Goller <[email protected]>
  • Loading branch information
goller committed Oct 11, 2023
1 parent 5f8b279 commit 1946160
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/helpers/onboarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package helpers

import (
"context"
"fmt"

"github.com/erikgeiser/promptkit/confirmation"
)
Expand Down Expand Up @@ -30,7 +31,9 @@ func ConfirmSaveProject(p *SelectedProject) bool {
return false
}

input := confirmation.New("Remember this project for future builds?", confirmation.NewValue(true))
prompt := fmt.Sprintf("Selected project %s (%s)\nCreate a depot.json file to remember the project for future builds?", p.Name, p.ID)

input := confirmation.New(prompt, confirmation.NewValue(true))
input.Template = confirmation.TemplateArrow
input.ResultTemplate = confirmation.ResultTemplateArrow

Expand Down

0 comments on commit 1946160

Please sign in to comment.