p.go

 1// Copyright © 2025 NAME HERE <EMAIL ADDRESS>
 2// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
 3//
 4// SPDX-License-Identifier: AGPL-3.0-or-later
 5
 6package cmd
 7
 8import (
 9	"fmt"
10
11	"github.com/spf13/cobra"
12)
13
14var pCmd = &cobra.Command{
15	Use:   "p",
16	Short: "Check plan",
17	Long:  `Display the current session plan (goal, description, remaining tasks)`,
18	Run: func(cmd *cobra.Command, args []string) {
19		fmt.Println("[STUB] Display full plan")
20		fmt.Println("Example goal title")
21		fmt.Println("")
22		fmt.Println("Legend: ☐ pending  ⟳ in progress  ☑ completed")
23		fmt.Println("☑ Completed task [a1b2c3d4]")
24		fmt.Println("  Example completed task description")
25		fmt.Println("⟳ In progress task [e5f6g7h8]")
26		fmt.Println("  Example in-progress task description")
27		fmt.Println("☐ Pending task [i9j0k1l2]")
28		fmt.Println("  Example pending task description")
29	},
30}
31
32func init() {
33	rootCmd.AddCommand(pCmd)
34
35	// Here you will define your flags and configuration settings.
36
37	// Cobra supports Persistent Flags which will work for this command
38	// and all subcommands, e.g.:
39	// pCmd.PersistentFlags().String("foo", "", "A help for foo")
40
41	// Cobra supports local flags which will only run when this command
42	// is called directly, e.g.:
43	// pCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
44}