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

Function jsonCommandWarnings

cmd/json_output.go:151–159  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

149}
150
151func jsonCommandWarnings(cmd *cobra.Command) []jsonWarning {
152 if cmd == nil || cmd.Deprecated == "" {
153 return emptyJSONWarnings()
154 }
155 return []jsonWarning{{
156 Code: jsonWarningCodeDeprecatedCommand,
157 Message: cmd.Deprecated,
158 }}
159}
160
161func jsonCommandPath(cmd *cobra.Command) string {
162 if cmd == nil {

Callers 2

newJSONErrorResponseFunction · 0.85
shareListLinksFunction · 0.85

Calls 1

emptyJSONWarningsFunction · 0.85

Tested by

no test coverage detected