Commit 84954a4d authored by Miles Whittaker's avatar Miles Whittaker 🏘
Browse files

Updated Makefile and version output

parent a70a1b57
hl
build
tags
!cmd/hl
all: build
build: check fmt
@go build ./cmd/hl
build: fmt
@mkdir -p ./build
@go build -o ./build ./cmd/*
check:
@which go >/dev/null 2>&1
clean: fmt
@rm -f hl
@rm -rf build
clena: clean
fmt: check
@go fmt . ./cmd/hl
@go fmt . ./cmd/*
gen: check
@go generate
......@@ -88,7 +88,7 @@ func main() {
} else if table {
hl.Table()
} else if version {
hl.Printf("Version: %s\n", hl.Version)
hl.Printf("hilighter version %s\n", hl.Version)
} else {
var line string
var scanner = bufio.NewScanner(os.Stdin)
......
......@@ -90,7 +90,7 @@ var Modes = map[string]string{
}
// Version is the package version
const Version = "1.5.5"
const Version = "1.5.6"
// Various regular expressions
var allCodes = regexp.MustCompile(`\x1b\[([0-9;]*m|K)`)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment