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