( IOStreams *iostreams.IOStreams, command *cobra.Command, )
| 160 | } |
| 161 | |
| 162 | func UsageFuncWithInheritedFlagsOnly( |
| 163 | IOStreams *iostreams.IOStreams, |
| 164 | command *cobra.Command, |
| 165 | ) func(cmd *cobra.Command) error { |
| 166 | return func(cmd *cobra.Command) error { |
| 167 | entries := UsageEntries{} |
| 168 | entries.AddBasicUsage(IOStreams, command) |
| 169 | entries.AddInheritedFlags(IOStreams, command) |
| 170 | |
| 171 | entries.DisplayEntries(IOStreams.Out) |
| 172 | return nil |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | func Dedent(s string) string { |
| 177 | lines := strings.Split(s, "\n") |
no test coverage detected