Skip to content

Commit

Permalink
fix: hide shell completion command
Browse files Browse the repository at this point in the history
  • Loading branch information
oversize committed May 22, 2024
1 parent d7b7558 commit 5f3fa54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions cmd/bursa/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ func main() {

rootCmd := &cobra.Command{
Use: programName,
CompletionOptions: cobra.CompletionOptions{
DisableDefaultCmd: true,
},
PersistentPreRun: func(cmd *cobra.Command, args []string) {
// Configure default logger
logLevel := slog.LevelInfo
Expand Down
5 changes: 2 additions & 3 deletions cmd/bursa/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
)

var (
output string
output string
)

func newCommand() *cobra.Command {
newCommand := &cobra.Command{
Use: "new",
Use: "new",
}

newCommand.AddCommand(
Expand All @@ -47,4 +47,3 @@ func newWalletCommand() *cobra.Command {

return &newWalletCommand
}

0 comments on commit 5f3fa54

Please sign in to comment.