Skip to content

Commit

Permalink
chore: remove deprecated command placeholders
Browse files Browse the repository at this point in the history
This change removes the `namespace migrate ...` commands, as they were only placeholders for deprecation warnings until now.
  • Loading branch information
zepatrik committed Sep 22, 2022
1 parent 30e75b9 commit 6f291f8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 94 deletions.
26 changes: 0 additions & 26 deletions cmd/namespace/migrate_down.go

This file was deleted.

23 changes: 0 additions & 23 deletions cmd/namespace/migrate_status.go

This file was deleted.

25 changes: 0 additions & 25 deletions cmd/namespace/migrate_up.go

This file was deleted.

21 changes: 1 addition & 20 deletions cmd/namespace/root.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package namespace

import (
"github.com/ory/x/cmdx"
"github.com/spf13/cobra"
"github.com/spf13/pflag"

"github.com/ory/keto/ketoctx"

"github.com/ory/keto/cmd/client"
)

func NewNamespaceCmd() *cobra.Command {
Expand All @@ -17,24 +13,9 @@ func NewNamespaceCmd() *cobra.Command {
}
}

func NewMigrateCmd() *cobra.Command {
return &cobra.Command{
Use: "migrate",
Short: "Migrate a namespace",
}
}

func RegisterCommandsRecursive(parent *cobra.Command, _ []ketoctx.Option) {
rootCmd := NewNamespaceCmd()
migrateCmd := NewMigrateCmd()
migrateCmd.AddCommand(NewMigrateUpCmd(), NewMigrateDownCmd(), NewMigrateStatusCmd())

rootCmd.AddCommand(migrateCmd, NewValidateCmd())
rootCmd.AddCommand(NewValidateCmd())

parent.AddCommand(rootCmd)
}

func registerPackageFlags(flags *pflag.FlagSet) {
client.RegisterRemoteURLFlags(flags)
cmdx.RegisterFormatFlags(flags)
}

0 comments on commit 6f291f8

Please sign in to comment.