diff --git a/internal/config/completions.go b/internal/config/completions.go index 2f5125d..cc81c6d 100644 --- a/internal/config/completions.go +++ b/internal/config/completions.go @@ -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), diff --git a/internal/visitor/find_args_completion.go b/internal/visitor/find_args_completion.go index 8489295..820b71a 100644 --- a/internal/visitor/find_args_completion.go +++ b/internal/visitor/find_args_completion.go @@ -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) } }