Skip to content

Commit

Permalink
chore: export more CLI commands (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl authored Sep 22, 2022
1 parent 11ead73 commit d92884e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/relationtuple/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/ory/keto/cmd/client"
)

func newDeleteCmd() *cobra.Command {
func NewDeleteCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "delete <relation-tuple.json> [<relation-tuple-dir>]",
Short: "Delete relation tuples defined in JSON files",
Expand Down
2 changes: 1 addition & 1 deletion cmd/relationtuple/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/spf13/cobra"
)

func newParseCmd() *cobra.Command {
func NewParseCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "parse",
Short: "Parse human readable relation tuples",
Expand Down
2 changes: 1 addition & 1 deletion cmd/relationtuple/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func RegisterCommandsRecursive(parent *cobra.Command) {

parent.AddCommand(relationCmd)

relationCmd.AddCommand(NewGetCmd(), NewCreateCmd(), newDeleteCmd(), NewDeleteAllCmd(), newParseCmd())
relationCmd.AddCommand(NewGetCmd(), NewCreateCmd(), NewDeleteCmd(), NewDeleteAllCmd(), NewParseCmd())
}

func registerPackageFlags(flags *pflag.FlagSet) {
Expand Down

0 comments on commit d92884e

Please sign in to comment.