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

package person

import (
	"fmt"

	"github.com/spf13/cobra"
)

// ListCmd lists people. Exported for potential use by shortcuts.
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "List people",
	Long: `List people from Lunatask.

Note: Due to end-to-end encryption, names are not available
through the API. Only metadata is shown.`,
	RunE: func(cmd *cobra.Command, _ []string) error {
		// TODO: implement person listing
		fmt.Fprintln(cmd.OutOrStdout(), "Person listing not yet implemented")

		return nil
	},
}

func init() {
	ListCmd.Flags().Bool("json", false, "Output as JSON")
}
