MCPcopy Create free account
hub / github.com/dropbox/dbxcli / jsonHelpOutputRequested

Function jsonHelpOutputRequested

cmd/help_json.go:202–205  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

200}
201
202func jsonHelpOutputRequested(cmd *cobra.Command) bool {
203 format, err := commandOutputFormatE(cmd)
204 return err == nil && format == output.FormatJSON
205}
206
207func commandIsJSONHelp(cmd *cobra.Command) bool {
208 return shouldRenderJSONHelpForHelpCommand(cmd)

Calls 1

commandOutputFormatEFunction · 0.85

Tested by

no test coverage detected