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

Method AddFilteredFlags

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

Source from the content-addressed store, hash-verified

74}
75
76func (u *UsageEntries) AddFilteredFlags(
77 IOStreams *iostreams.IOStreams,
78 command *cobra.Command,
79 flagsToDisplay []string,
80) {
81 filteredFlags := filterFlagSet(*command.LocalFlags(), flagsToDisplay)
82
83 u.AddFlags(IOStreams, command, filteredFlags.FlagUsages())
84}
85
86func (u *UsageEntries) AddInheritedFlags(IOStreams *iostreams.IOStreams, command *cobra.Command) {
87 cs := IOStreams.ColorScheme()

Calls 2

AddFlagsMethod · 0.95
filterFlagSetFunction · 0.85

Tested by

no test coverage detected