Skip to content

Commit

Permalink
refactor: rename dump into collect-debug-info (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdand-weka authored Jan 3, 2024
1 parent 158f659 commit edaffe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dump
package debug

import (
"github.com/spf13/cobra"
Expand All @@ -8,7 +8,7 @@ import (
)

var dumpCmd = &cobra.Command{
Use: "dump [flags] OUTPUT_ARCHIVE",
Use: "collect-debug-info [flags] OUTPUT_ARCHIVE",
Short: "Dump cluster information for debugging and save it into OUTPUT_ARCHIVE",
Args: cobra.ExactArgs(1),
ValidArgs: []string{"OUTPUT_ARCHIVE"},
Expand Down
4 changes: 2 additions & 2 deletions internal/cli/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/weka/gohomecli/internal/cli/app/hooks"
"github.com/weka/gohomecli/internal/cli/local/cleanup"
"github.com/weka/gohomecli/internal/cli/local/dump"
"github.com/weka/gohomecli/internal/cli/local/debug"
"github.com/weka/gohomecli/internal/cli/local/setup"
"github.com/weka/gohomecli/internal/cli/local/upgrade"
"github.com/weka/gohomecli/internal/env"
Expand Down Expand Up @@ -36,7 +36,7 @@ func init() {
appCmd.AddGroup(localGroup)
appCmd.AddCommand(localCmd)

dump.Cli.InitCobra(localCmd)
debug.Cli.InitCobra(localCmd)
setup.Cli.InitCobra(localCmd)
upgrade.Cli.InitCobra(localCmd)
cleanup.Cli.InitCobra(localCmd)
Expand Down

0 comments on commit edaffe5

Please sign in to comment.