From 0b840f87d8a36975a83d54e76f7cdd65870e9436 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Thu, 12 Feb 2026 19:56:26 +0100 Subject: [PATCH] remove survery intro, will find better way --- cmd/survey/assets/intro.toml | 10 ------- cmd/survey/forms/intro.go | 56 ------------------------------------ 2 files changed, 66 deletions(-) delete mode 100644 cmd/survey/assets/intro.toml delete mode 100644 cmd/survey/forms/intro.go diff --git a/cmd/survey/assets/intro.toml b/cmd/survey/assets/intro.toml deleted file mode 100644 index 845895b..0000000 --- a/cmd/survey/assets/intro.toml +++ /dev/null @@ -1,10 +0,0 @@ -Title = "Welcome to the PM CLI Survey!" -Description = "Thank you for taking the time to participate in our survey. Your feedback is crucial in helping us improve the PM CLI and make it a more effective tool for project management. Please read the following information about the PM CLI before proceeding with the survey." - -[About] -Title = "About the PM CLI" -Description = "YO PM CLI is a tool designed to help you manage your projects more efficiently. It provides features such as task management, issue tracking, and team collaboration, all through a simple command-line interface." - -[Disclaimer] -Title = "Disclaimer" -Description = "Please note that the PM CLI is currently in its early stages of development. We are actively seeking feedback to improve the tool, so your input is highly valuable to us. By participating in this survey, you agree to provide honest and constructive feedback to help shape the future of the PM CLI." \ No newline at end of file diff --git a/cmd/survey/forms/intro.go b/cmd/survey/forms/intro.go deleted file mode 100644 index fd4be96..0000000 --- a/cmd/survey/forms/intro.go +++ /dev/null @@ -1,56 +0,0 @@ -package forms - -import ( - "embed" - "fmt" - - "github.com/BurntSushi/toml" - "github.com/charmbracelet/huh" -) - -type Introduction struct { - Title string - Description string - About struct { - Title string - Description string - } - Disclaimer struct { - Title string - Description string - } -} - -func NewIntroduction(fs embed.FS) (Introduction, error) { - var intro Introduction - if _, err := toml.DecodeFS(fs, "assets/intro.toml", &intro); err != nil { - return Introduction{}, err - } - - return intro, nil -} - -func (i Introduction) Run() error { - fmt.Print("\033[H\033[2J") - - form := huh.NewForm( - huh.NewGroup( - huh.NewNote(). - Title(i.Title). - Description(i.Description), - ), - huh.NewGroup( - huh.NewNote(). - Title(i.About.Title). - Description(i.About.Description), - ), - huh.NewGroup( - huh.NewNote(). - Title(i.Disclaimer.Title). - Description(i.Disclaimer.Description), - ), - ).WithLayout(huh.LayoutStack). - WithTheme(huh.ThemeBase16()) - - return form.Run() -}