mirror of https://github.com/ory/hydra
21 lines
369 B
Go
21 lines
369 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 NewGetCmd() *cobra.Command {
|
|
var cmd = &cobra.Command{
|
|
Use: "get",
|
|
Short: "Get resources",
|
|
}
|
|
cmdx.RegisterHTTPClientFlags(cmd.PersistentFlags())
|
|
cmdx.RegisterFormatFlags(cmd.PersistentFlags())
|
|
return cmd
|
|
}
|