// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package cmd import ( "bytes" "encoding/json" "errors" "fmt" "io" "os" "github.com/spf13/cobra" hydra "github.com/ory/hydra-client-go/v2" "github.com/ory/hydra/v2/cmd/cli" "github.com/ory/hydra/v2/cmd/cliclient" "github.com/ory/x/cmdx" "github.com/ory/x/pointerx" ) func NewImportClientCmd() *cobra.Command { cmd := &cobra.Command{ Use: "oauth2-client [ ...]", Aliases: []string{"client", "clients", "oauth2-clients"}, Short: "Import one or more OAuth 2.0 Clients from files or STDIN", Example: `Import an example OAuth2 Client: cat > ./file.json <