mirror of
https://github.com/mattn/go-colorable.git
synced 2025-01-22 20:40:22 +08:00
add colorable command
This commit is contained in:
parent
68849ea30c
commit
6c0fd4aa6e
12
cmd/colorable/colorable.go
Normal file
12
cmd/colorable/colorable.go
Normal file
@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/mattn/go-colorable"
|
||||
)
|
||||
|
||||
func main() {
|
||||
io.Copy(colorable.NewColorableStdout(), os.Stdin)
|
||||
}
|
Loading…
Reference in New Issue
Block a user