printer/templateprinter.go
changeset 265 05c40b36d3b2
parent 239 605a00e9d1ab
equal deleted inserted replaced
264:8f478162d991 265:05c40b36d3b2
     1 // Copyright © 2017 Mikael Berthe <mikael@lilotux.net>
     1 // Copyright © 2017-2023 Mikael Berthe <mikael@lilotux.net>
     2 //
     2 //
     3 // Licensed under the MIT license.
     3 // Licensed under the MIT license.
     4 // Please see the LICENSE file is this directory.
     4 // Please see the LICENSE file is this directory.
     5 
     5 
     6 package printer
     6 package printer
    16 	"time"
    16 	"time"
    17 
    17 
    18 	"github.com/kr/text"
    18 	"github.com/kr/text"
    19 	"github.com/mattn/go-isatty"
    19 	"github.com/mattn/go-isatty"
    20 
    20 
    21 	"github.com/McKael/madon/v2"
    21 	"github.com/McKael/madon/v3"
    22 	"github.com/McKael/madonctl/printer/colors"
    22 	"github.com/McKael/madonctl/printer/colors"
    23 )
    23 )
    24 
    24 
    25 // disableColors can be set to true to disable the color template function
    25 // disableColors can be set to true to disable the color template function
    26 var disableColors bool
    26 var disableColors bool