task.go

 1// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
 2//
 3// SPDX-License-Identifier: AGPL-3.0-or-later
 4
 5// Package task provides commands for managing Lunatask tasks.
 6package task
 7
 8import "github.com/spf13/cobra"
 9
10// Cmd is the parent command for task operations.
11var Cmd = &cobra.Command{
12	Use:     "task",
13	Short:   "Manage tasks",
14	GroupID: "resources",
15}
16
17func init() {
18	Cmd.AddCommand(AddCmd)
19	Cmd.AddCommand(ListCmd)
20	Cmd.AddCommand(GetCmd)
21	Cmd.AddCommand(UpdateCmd)
22	Cmd.AddCommand(DeleteCmd)
23}