github.com/ryanfowler/glide@v0.12.1-0.20160826135910-1071a8c18883/action/debug.go (about)

     1  package action
     2  
     3  import (
     4  	"github.com/Masterminds/glide/msg"
     5  )
     6  
     7  // Debug sets the debugging flags across components.
     8  func Debug(on bool) {
     9  	msg.Default.IsDebugging = on
    10  
    11  	if on == true {
    12  		msg.Default.IsVerbose = on
    13  	}
    14  }
    15  
    16  // Verbose sets the verbose flags across components.
    17  func Verbose(on bool) {
    18  	msg.Default.IsVerbose = on
    19  }
    20  
    21  // Quiet sets the quiet flags across components.
    22  func Quiet(on bool) {
    23  	msg.Default.Quiet = on
    24  }
    25  
    26  // NoColor sets the color flags.
    27  func NoColor(on bool) {
    28  	msg.Default.NoColor = on
    29  }