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

// Package goal provides commands for viewing configured goals.
package goal

import (
	"errors"

	"github.com/spf13/cobra"
)

// ErrUnknownGoal indicates the specified goal key was not found in config.
var ErrUnknownGoal = errors.New("unknown goal key")

// ErrUnknownArea indicates the specified area key was not found in config.
var ErrUnknownArea = errors.New("unknown area key")

// Cmd is the parent command for goal operations.
var Cmd = &cobra.Command{
	Use:     "goal",
	Short:   "View configured goals",
	GroupID: "resources",
}

func init() {
	Cmd.AddCommand(ListCmd)
	Cmd.AddCommand(ShowCmd)
}
