make tasks use map instead of slice

This commit is contained in:
Robin Olsen
2026-02-23 13:13:34 +01:00
parent 2c2fbac3a3
commit 8decd74952
5 changed files with 28 additions and 24 deletions

View File

@@ -2,8 +2,18 @@ package surveyCmd
import "github.com/spf13/cobra"
var (
InterfaceType string
Task string
)
// StartCmd is the start command - RunE is set in cmd/survey/
var StartCmd = &cobra.Command{
Use: "start",
Short: "Start the user survey",
}
func init() {
StartCmd.Flags().StringVarP(&Task, "task", "t", "", "Specify task.")
StartCmd.Flags().StringVarP(&InterfaceType, "interface", "i", "", "Specify interface.")
}