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 uCmd = &cobra.Command{
14 Use: "u",
15 Short: "Update task",
16 Long: `Update a task's status`,
17 Run: func(cmd *cobra.Command, args []string) {
18 fmt.Println("[STUB] Update task status")
19 },
20}
21
22func init() {
23 TCmd.AddCommand(uCmd)
24
25 uCmd.Flags().StringP("id", "i", "", "Task ID (required)")
26 uCmd.Flags().StringP("status", "s", "", "Task status (required)")
27 _ = uCmd.MarkFlagRequired("id")
28 _ = uCmd.MarkFlagRequired("status")
29}