MCPcopy Create free account
hub / github.com/tendermint/tendermint / validateOutput

Function validateOutput

libs/cli/setup.go:151–160  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

149}
150
151func validateOutput(cmd *cobra.Command, args []string) error {
152 // validate output format
153 output := viper.GetString(OutputFlag)
154 switch output {
155 case "text", "json":
156 default:
157 return fmt.Errorf("unsupported output format: %s", output)
158 }
159 return nil
160}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…