( IOStreams *iostreams.IOStreams, command *cobra.Command, flagsToDisplay []string, )
| 144 | } |
| 145 | |
| 146 | func UsageFuncWithFilteredAndInheritedFlags( |
| 147 | IOStreams *iostreams.IOStreams, |
| 148 | command *cobra.Command, |
| 149 | flagsToDisplay []string, |
| 150 | ) func(cmd *cobra.Command) error { |
| 151 | return func(cmd *cobra.Command) error { |
| 152 | entries := UsageEntries{} |
| 153 | entries.AddBasicUsage(IOStreams, command) |
| 154 | entries.AddFilteredFlags(IOStreams, command, flagsToDisplay) |
| 155 | entries.AddInheritedFlags(IOStreams, command) |
| 156 | |
| 157 | entries.DisplayEntries(IOStreams.Out) |
| 158 | return nil |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | func UsageFuncWithInheritedFlagsOnly( |
| 163 | IOStreams *iostreams.IOStreams, |
no test coverage detected