Restructure directory layout: org subpackage

This commit is contained in:
Niklas Fasching 2018-12-02 16:52:27 +01:00
parent 6c683dfbdb
commit fc982125c9
17 changed files with 11 additions and 7 deletions

View file

@ -1,13 +1,17 @@
.PHONY: default .PHONY: default
default: test default: test
.PHONY: test .PHONY: install
test: install:
go test ./... -v go get ./...
.PHONY: build .PHONY: build
build: build: install
go build cmd/org/* go build main.go
.PHONY: test
test: install
go test ./... -v
.PHONY: setup .PHONY: setup
setup: setup:
@ -16,4 +20,4 @@ setup:
case=example case=example
.PHONY: render .PHONY: render
render: render:
bash -c "go run cmd/org/org.go testdata/$(case).org html |& html2text" bash -c "go run main.go org/testdata/$(case).org html |& html2text"

View file

@ -11,7 +11,7 @@ import (
"github.com/alecthomas/chroma/formatters/html" "github.com/alecthomas/chroma/formatters/html"
"github.com/alecthomas/chroma/lexers" "github.com/alecthomas/chroma/lexers"
"github.com/alecthomas/chroma/styles" "github.com/alecthomas/chroma/styles"
"github.com/niklasfasching/org" "github.com/niklasfasching/go-org/org"
) )
func main() { func main() {

View file