Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export CLI commands #1031

Merged
merged 1 commit into from
Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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