// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

package g

import (
	"fmt"

	"github.com/spf13/cobra"
)

var sCmd = &cobra.Command{
	Use:   "s",
	Short: "Set goal",
	Long:  `Set the session goal with title and description`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("[STUB] Set session goal with title and description")
	},
}

func init() {
	GCmd.AddCommand(sCmd)

	sCmd.Flags().StringP("title", "t", "", "Goal title (required)")
	sCmd.Flags().StringP("description", "d", "", "Goal description (required)")
	_ = sCmd.MarkFlagRequired("title")
	_ = sCmd.MarkFlagRequired("description")
}
