refine pm cli and descriptions

This commit is contained in:
Robin Olsen
2026-03-16 13:06:16 +01:00
parent 43ca776536
commit 9a70851a0a
5 changed files with 24 additions and 15 deletions

View File

@@ -86,18 +86,20 @@ func init() {
RootCmd.AddCommand(issues.CommentCmd)
RootCmd.AddCommand(issues.CommentsCmd)
var SurveyRootCmd = survey.RootCmd
SurveyRootCmd.GroupID = "survey"
RootCmd.AddGroup(&cobra.Group{ID: "survey", Title: "Survey Commands"})
survey.StartCmd.GroupID = "survey"
survey.StatusCmd.GroupID = "survey"
survey.SubmitCmd.GroupID = "survey"
survey.ListTasksCmd.GroupID = "survey"
survey.ListInterfacesCmd.GroupID = "survey"
survey.StartCmd.RunE = runStartCmd
SurveyRootCmd.AddCommand(survey.StartCmd)
SurveyRootCmd.AddCommand(survey.StatusCmd)
SurveyRootCmd.AddCommand(survey.SubmitCmd)
SurveyRootCmd.AddCommand(survey.ListTasksCmd)
SurveyRootCmd.AddCommand(survey.ListInterfacesCmd)
RootCmd.AddCommand(survey.StartCmd)
RootCmd.AddCommand(survey.StatusCmd)
RootCmd.AddCommand(survey.SubmitCmd)
RootCmd.AddCommand(SurveyRootCmd)
RootCmd.AddCommand(survey.ListTasksCmd)
RootCmd.AddCommand(survey.ListInterfacesCmd)
RootCmd.AddGroup(&cobra.Group{ID: "other", Title: "Additional Commands"})
RootCmd.SetHelpCommandGroupID("other")