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