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

Function commandVerbose

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

Source from the content-addressed store, hash-verified

304}
305
306func commandVerbose(cmd *cobra.Command) bool {
307 if cmd == nil {
308 return false
309 }
310 verbose, err := cmd.Flags().GetBool("verbose")
311 if err == nil {
312 return verbose
313 }
314 verbose, err = cmd.InheritedFlags().GetBool("verbose")
315 if err == nil {
316 return verbose
317 }
318 verbose, err = cmd.PersistentFlags().GetBool("verbose")
319 return err == nil && verbose
320}
321
322func commandVerboseStatus(cmd *cobra.Command, format string, args ...any) {
323 if commandVerbose(cmd) {

Calls

no outgoing calls