Restructure directory layout: org subpackage
This commit is contained in:
parent
6c683dfbdb
commit
fc982125c9
17 changed files with 11 additions and 7 deletions
16
Makefile
16
Makefile
|
@ -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"
|
||||||
|
|
|
@ -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() {
|
Loading…
Add table
Add a link
Reference in a new issue