MCPcopy Create free account
hub / github.com/algolia/cli / UsageFuncWithFilteredAndInheritedFlags

Function UsageFuncWithFilteredAndInheritedFlags

pkg/cmdutil/usage.go:146–160  ·  view source on GitHub ↗
(
	IOStreams *iostreams.IOStreams,
	command *cobra.Command,
	flagsToDisplay []string,
)

Source from the content-addressed store, hash-verified

144}
145
146func 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
162func UsageFuncWithInheritedFlagsOnly(
163 IOStreams *iostreams.IOStreams,

Callers 1

NewSearchCmdFunction · 0.92

Calls 4

AddBasicUsageMethod · 0.95
AddFilteredFlagsMethod · 0.95
AddInheritedFlagsMethod · 0.95
DisplayEntriesMethod · 0.95

Tested by

no test coverage detected