s.go

 1// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
 2//
 3// SPDX-License-Identifier: AGPL-3.0-or-later
 4
 5package g
 6
 7import (
 8	"fmt"
 9
10	"github.com/spf13/cobra"
11)
12
13var sCmd = &cobra.Command{
14	Use:   "s",
15	Short: "Set goal",
16	Long:  `Set the session goal with title and description`,
17	Run: func(cmd *cobra.Command, args []string) {
18		fmt.Println("[STUB] Set session goal with title and description")
19	},
20}
21
22func init() {
23	GCmd.AddCommand(sCmd)
24
25	sCmd.Flags().StringP("title", "t", "", "Goal title (required)")
26	sCmd.Flags().StringP("description", "d", "", "Goal description (required)")
27	_ = sCmd.MarkFlagRequired("title")
28	_ = sCmd.MarkFlagRequired("description")
29}