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

Function shouldRenderJSONHelpForHelpCommand

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

Source from the content-addressed store, hash-verified

196}
197
198func shouldRenderJSONHelpForHelpCommand(cmd *cobra.Command) bool {
199 return isJSONHelpCommand(cmd) && jsonHelpOutputRequested(cmd)
200}
201
202func jsonHelpOutputRequested(cmd *cobra.Command) bool {
203 format, err := commandOutputFormatE(cmd)

Callers 2

newJSONAwareHelpCommandFunction · 0.85
commandIsJSONHelpFunction · 0.85

Calls 2

isJSONHelpCommandFunction · 0.85
jsonHelpOutputRequestedFunction · 0.85

Tested by

no test coverage detected