goal.go

 1// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
 2//
 3// SPDX-License-Identifier: AGPL-3.0-or-later
 4
 5// Package goal provides commands for viewing configured goals.
 6package goal
 7
 8import (
 9	"errors"
10
11	"github.com/spf13/cobra"
12)
13
14// ErrUnknownGoal indicates the specified goal key was not found in config.
15var ErrUnknownGoal = errors.New("unknown goal key")
16
17// ErrUnknownArea indicates the specified area key was not found in config.
18var ErrUnknownArea = errors.New("unknown area key")
19
20// Cmd is the parent command for goal operations.
21var Cmd = &cobra.Command{
22	Use:     "goal",
23	Short:   "View configured goals",
24	GroupID: "resources",
25}
26
27func init() {
28	Cmd.AddCommand(ListCmd)
29	Cmd.AddCommand(ShowCmd)
30}