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

Function commandOutputFormatE

cmd/output.go:245–251  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

243}
244
245func commandOutputFormatE(cmd *cobra.Command) (output.Format, error) {
246 value := string(output.FormatText)
247 if cmd != nil {
248 value = commandOutputFlagValue(cmd)
249 }
250 return parseOutputFormat(value)
251}
252
253func commandOutputFlagValue(cmd *cobra.Command) string {
254 value, err := cmd.Flags().GetString(outputFlag)

Callers 3

commandOutputFormatFunction · 0.85
validateOutputFormatFunction · 0.85
jsonHelpOutputRequestedFunction · 0.85

Calls 2

commandOutputFlagValueFunction · 0.85
parseOutputFormatFunction · 0.85

Tested by

no test coverage detected