github.com/r2d2-ai/cli@v1.20.0/api/api.go (about) 1 package api 2 3 import ( 4 "github.com/r2d2-ai/cli/util" 5 ) 6 7 var verbose = false 8 9 func SetVerbose(enable bool) { 10 verbose = enable 11 util.SetVerbose(enable) 12 } 13 14 func Verbose() bool { 15 return verbose 16 } 17 18 //TODO use a logger like struct for API that can be used to log or console output