mirror of https://github.com/ory/hydra
22 lines
403 B
Go
22 lines
403 B
Go
// Copyright © 2022 Ory Corp
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/ory/x/cmdx"
|
|
)
|
|
|
|
func NewListCmd() *cobra.Command {
|
|
var cmd = &cobra.Command{
|
|
Use: "list",
|
|
Aliases: []string{"ls"},
|
|
Short: "List resources",
|
|
}
|
|
cmdx.RegisterHTTPClientFlags(cmd.PersistentFlags())
|
|
cmdx.RegisterFormatFlags(cmd.PersistentFlags())
|
|
return cmd
|
|
}
|