mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-06 08:57:15 -04:00
.
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
|||||||
go-version: '1.20'
|
go-version: '1.20'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd examples && go build syncat.go
|
run: cd examples && go mod tidy && go build syncat.go
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v
|
run: go test -v
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ go 1.19
|
|||||||
require (
|
require (
|
||||||
github.com/fatih/color v1.15.0
|
github.com/fatih/color v1.15.0
|
||||||
github.com/jessp01/gohighlight v0.21.1-1
|
github.com/jessp01/gohighlight v0.21.1-1
|
||||||
github.com/jessp01/highlight v0.0.0-20230716160321-8969d1f05a45
|
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ func main() {
|
|||||||
if gopath == "" {
|
if gopath == "" {
|
||||||
syn_dir = "/etc/highlight"
|
syn_dir = "/etc/highlight"
|
||||||
} else {
|
} else {
|
||||||
syn_dir = gopath + "/src/github.com/jessp01/highlight/syntax_files"
|
syn_dir = gopath + "/src/github.com/jessp01/gohighlight/syntax_files"
|
||||||
}
|
}
|
||||||
|
|
||||||
syn_dir = os.Getenv("SYNDIR")
|
syn_dir = os.Getenv("SYNDIR")
|
||||||
|
|||||||
Reference in New Issue
Block a user