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

Method AddFlags

pkg/cmdutil/usage.go:56–66  ·  view source on GitHub ↗
(
	IOStreams *iostreams.IOStreams,
	command *cobra.Command,
	flagUsages string,
)

Source from the content-addressed store, hash-verified

54}
55
56func (u *UsageEntries) AddFlags(
57 IOStreams *iostreams.IOStreams,
58 command *cobra.Command,
59 flagUsages string,
60) {
61 cs := IOStreams.ColorScheme()
62
63 if flagUsages != "" {
64 u.AddEntry(UsageEntry{cs.Bold("Flags:"), flagUsages})
65 }
66}
67
68func (u *UsageEntries) AddAllFlags(
69 IOStreams *iostreams.IOStreams,

Callers 15

AddAllFlagsMethod · 0.95
AddFilteredFlagsMethod · 0.95
UsageFuncFunction · 0.95
rootHelpFuncFunction · 0.95
NewOpenCmdFunction · 0.45
cmdWithOptsFunction · 0.45
NewGetCmdFunction · 0.45
NewDeleteCmdFunction · 0.45
NewBrowseCmdFunction · 0.45
NewUpdateCmdFunction · 0.45
NewOperationsCmdFunction · 0.45
NewSearchCmdFunction · 0.45

Calls 3

AddEntryMethod · 0.95
ColorSchemeMethod · 0.80
BoldMethod · 0.80

Tested by 1

cmdWithOptsFunction · 0.36