Skip to content

Commit

Permalink
fix: rename import to put
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Sep 7, 2020
1 parent 98c7915 commit 8003e0f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
16 changes: 16 additions & 0 deletions cmd/identities/patch.go
@@ -0,0 +1,16 @@
package identities

import (
"fmt"

"github.com/spf13/cobra"
)

var patchCmd = &cobra.Command{
Use: "patch <file.json [file-2.json [file-3.json] ...]>",
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
// TODO
fmt.Println("not yet implemented")
},
}
4 changes: 2 additions & 2 deletions cmd/identities/import.go → cmd/identities/put.go
Expand Up @@ -17,8 +17,8 @@ import (
"github.com/ory/x/cmdx"
)

// importCmd represents the import command
var importCmd = &cobra.Command{
// putCmd represents the import command
var putCmd = &cobra.Command{
Use: "import <file.json [file-2.json [file-3.json] ...]>",
Run: importIdentities,
}
Expand Down
3 changes: 2 additions & 1 deletion cmd/identities/root.go
Expand Up @@ -16,11 +16,12 @@ var identitiesCmd = &cobra.Command{
func RegisterCommandRecursive(parent *cobra.Command) {
parent.AddCommand(identitiesCmd)

identitiesCmd.AddCommand(importCmd)
identitiesCmd.AddCommand(putCmd)
identitiesCmd.AddCommand(validateCmd)
identitiesCmd.AddCommand(listCmd)
identitiesCmd.AddCommand(getCmd)
identitiesCmd.AddCommand(deleteCmd)
identitiesCmd.AddCommand(patchCmd)
}

func init() {
Expand Down

0 comments on commit 8003e0f

Please sign in to comment.