From 75cfcdcd47c2042c63b36bebc004ac8b15df1ad9 Mon Sep 17 00:00:00 2001 From: silenceshell Date: Thu, 24 Jun 2021 14:51:27 +0000 Subject: [PATCH] move to non-public fields --- command.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/command.go b/command.go index ca1743ad..37cdd8a2 100644 --- a/command.go +++ b/command.go @@ -88,9 +88,6 @@ type Command struct { // group commands. Annotations map[string]string - //flagCompletionFunctions is map of flag completion functions. - flagCompletionFunctions map[*flag.Flag]func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) - // Version defines the version for this command. If this value is non-empty and the command does not // define a "version" flag, a "version" boolean flag will be added to the command and, if specified, // will print content of the "Version" variable. A shorthand "v" flag will also be added if the @@ -144,6 +141,9 @@ type Command struct { // that we can use on every pflag set and children commands globNormFunc func(f *flag.FlagSet, name string) flag.NormalizedName + //flagCompletionFunctions is map of flag completion functions. + flagCompletionFunctions map[*flag.Flag]func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) + // usageFunc is usage func defined by user. usageFunc func(*Command) error // usageTemplate is usage template defined by user.