Skip to content

Commit

Permalink
chore: Remove flag completions for deprecated flags
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 2, 2024
1 parent 64b07bc commit 87644c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion internal/config/completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const (
func (c *Config) RegisterCompletions(cmd *cobra.Command) {
if err := errors.Join(
cmd.RegisterFlagCompletionFunc(InplaceFlag, BoolCompletion),
cmd.RegisterFlagCompletionFunc(RecursiveFlag, BoolCompletion),
cmd.RegisterFlagCompletionFunc(PrefixFlag, cobra.NoFileCompletions),
cmd.RegisterFlagCompletionFunc(LeftDelimFlag, cobra.NoFileCompletions),
cmd.RegisterFlagCompletionFunc(RightDelimFlag, cobra.NoFileCompletions),
Expand Down
5 changes: 1 addition & 4 deletions internal/visitor/find_args_completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ import (
)

func RegisterCompletion(cmd *cobra.Command, conf *config.Config) {
if err := errors.Join(
cmd.RegisterFlagCompletionFunc(config.VarFlag, valueCompletion(conf)),
cmd.RegisterFlagCompletionFunc(config.ValueFlag, valueCompletion(conf)),
); err != nil {
if err := cmd.RegisterFlagCompletionFunc(config.VarFlag, valueCompletion(conf)); err != nil {
panic(err)
}
}
Expand Down

0 comments on commit 87644c4

Please sign in to comment.