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
default: test
.PHONY: test
test:
go test ./... -v
.PHONY: install
install:
go get ./...
.PHONY: build
build:
go build cmd/org/*
build: install
go build main.go
.PHONY: test
test: install
go test ./... -v
.PHONY: setup
setup:
@ -16,4 +20,4 @@ setup:
case=example
.PHONY: 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/lexers"
"github.com/alecthomas/chroma/styles"
"github.com/niklasfasching/org"
"github.com/niklasfasching/go-org/org"
)
func main() {

View file