Clean up trail finding commands · Entire

Clean up trail finding commands

0e8743b→main·

dipree·4w ago·4 files·+227 added/-154 removed

Sessions

e6ec93261fcaView transcript

Changes

4

45 unmodified lines

45 unmodified lines

Short:  "Manage trails for your branches",
        Hidden: true,
        Args:   cobra.NoArgs,
        Long: `Trails are branch-centric work tracking abstractions. They describe the
"why" and "what" of your work, while checkpoints capture the "how" and "when".`,
        Long:   "A trail ties together the context for a branch. Use `entire trail` to view, create, update, or watch it.",
        RunE: func(cmd *cobra.Command, _ []string) error {
            return cmd.Help()
        },

Mcmd/entire/cli/trail_cmd.go+1/-2

243 unmodified lines

Mcmd/entire/cli/trail_cmd_test.go+1/-1

24 unmodified lines

func newTrailReviewUpdateCmd(targetOpts *trailReviewTargetOptions) *cobra.Command { ... }}

func runTrailReviewDashboard(cmd *cobra.Command, selector string, opts trailReviewListOptions) error { ... }

func runTrailReviewUpdate(cmd *cobra.Command, selector string, commentID string, opts trailReviewUpdateOptions) error { ... }

func runTrailReviewWatch(cmd *cobra.Command, selector string, jsonOutput, showPings, once bool) error { ... }

func filterCommentsBySeverity(comments []api.TrailReviewComment, severity string) []api.TrailReviewComment { ... }

func trailReviewCommentTitle(comment api.TrailReviewComment) string { ... }

func severityTitle(severity string) string { switch severity { case trailReviewSeverityHigh: return "High" case trailReviewSeverityMedium: return "Medium" case trailReviewSeverityLow: return "Low" default: return "Other" } }

func severityDisplay(severity *string) string { if severity == nil || strings.TrimSpace(*severity) == "" { return "-" } return *severity }

func printTrailReviewCommentDetail(w io.Writer, comment api.TrailReviewComment) { ... }