1// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
2//
3// SPDX-License-Identifier: AGPL-3.0-or-later
4
5package person
6
7import (
8 "fmt"
9
10 "github.com/spf13/cobra"
11)
12
13// ListCmd lists people. Exported for potential use by shortcuts.
14var ListCmd = &cobra.Command{
15 Use: "list",
16 Short: "List people",
17 Long: `List people from Lunatask.
18
19Note: Due to end-to-end encryption, names are not available
20through the API. Only metadata is shown.`,
21 RunE: func(cmd *cobra.Command, _ []string) error {
22 // TODO: implement person listing
23 fmt.Fprintln(cmd.OutOrStdout(), "Person listing not yet implemented")
24
25 return nil
26 },
27}
28
29func init() {
30 ListCmd.Flags().Bool("json", false, "Output as JSON")
31}