From eeb6a67d1ecc6cc9a0f81262012086a8214393f4 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Mon, 23 Feb 2026 13:58:27 +0100 Subject: [PATCH] add basic git based question --- cmd/survey/tasks/gitTask.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cmd/survey/tasks/gitTask.go b/cmd/survey/tasks/gitTask.go index a64e5cb..f120866 100644 --- a/cmd/survey/tasks/gitTask.go +++ b/cmd/survey/tasks/gitTask.go @@ -11,6 +11,7 @@ import ( "github.com/LazyBachelor/LazyPM/internal/service" "github.com/LazyBachelor/LazyPM/pkg/task" taskui "github.com/LazyBachelor/LazyPM/pkg/task/ui" + "github.com/charmbracelet/huh" "github.com/go-git/go-git/v6" ) @@ -40,7 +41,16 @@ func (t *GitTask) Details() taskui.TaskDetails { } func (t *GitTask) Questions(interfaceType task.InterfaceType) taskui.Questions { - return BaseQuestions(interfaceType) + return BaseQuestions(interfaceType).With( + huh.NewGroup( + huh.NewSelect[string]().Title("What Git Interface did you use?"). + Options( + huh.Option[string]{Value: "cli", Key: "Command Line Interface"}, + huh.Option[string]{Value: "tui", Key: "Terminal User Interface"}, + huh.Option[string]{Value: "gui", Key: "Graphical User Interface"}, + ), + ), + ) } func (t *GitTask) Setup(ctx context.Context) error {