add basic git based question

This commit is contained in:
Robin Olsen
2026-02-23 13:58:27 +01:00
parent 7599ceff7d
commit eeb6a67d1e

View File

@@ -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 {