| // Copyright 2016 Claudemiro Alves Feitosa Neto. All rights reserved. |
| // Use of this source code is governed by a MIT-style |
| // license that can be found in the LICENSE file. |
| // Package autoload configure the banner loader with defaults |
| // Import the package. Thats it. |
| "github.com/dimiro1/banner" |
| "github.com/mattn/go-colorable" |
| flag.StringVar(&filename, "banner", "banner.txt", "banner.txt file") |
| flag.BoolVar(&isEnabled, "show-banner", true, "print the banner?") |
| flag.BoolVar(&isColorEnabled, "ansi", true, "ansi colors enabled?") |
| in, err := os.Open(filename) |
| banner.Init(colorable.NewColorableStdout(), isEnabled, isColorEnabled, in) |