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

Function UsageFuncWithFilteredFlags

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

Source from the content-addressed store, hash-verified

134}
135
136func UsageFuncWithFilteredFlags(
137 IOStreams *iostreams.IOStreams,
138 command *cobra.Command,
139 flagsToDisplay []string,
140) func(cmd *cobra.Command) error {
141 filteredFlags := filterFlagSet(*command.LocalFlags(), flagsToDisplay)
142
143 return UsageFunc(IOStreams, command, filteredFlags.FlagUsages())
144}
145
146func UsageFuncWithFilteredAndInheritedFlags(
147 IOStreams *iostreams.IOStreams,

Callers

nothing calls this directly

Calls 2

filterFlagSetFunction · 0.85
UsageFuncFunction · 0.85

Tested by

no test coverage detected