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