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

// Package area provides commands for viewing configured areas.
package area

import (
	"errors"

	"github.com/spf13/cobra"
)

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

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

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