Skip to content

Commit dcea91e

Browse files
committed
add CLI for RAML
1 parent 5a92984 commit dcea91e

File tree

8 files changed

+593
-148
lines changed

8 files changed

+593
-148
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
*.tokens
55
cover.html
66
cover.out
7+
.build

Makefile

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# Directory containing the Makefile.
2-
PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
3-
42
export PATH := $(GOBIN):$(PATH)
53

6-
BENCH_FLAGS ?= -cpuprofile=cpu.pprof -memprofile=mem.pprof -benchmem
7-
8-
# Directories that we want to test and track coverage for.
9-
TEST_DIRS = .
10-
114
.PHONY: all
125
all: lint cover
136

@@ -23,3 +16,19 @@ test:
2316
cover:
2417
@go test -coverprofile=cover.out -coverpkg=./... ./... \
2518
&& go tool cover -html=cover.out -o cover.html
19+
20+
.PHONY: build
21+
build: go-build
22+
23+
.PHONY: go-build
24+
go-build:
25+
@cd cmd/raml && go build -o ../../.build/raml
26+
27+
.PHONY: install
28+
install: go-install
29+
30+
.PHONY: go-install
31+
go-install:
32+
@cd cmd/raml && \
33+
go install -v ./... \
34+
&& echo `go list -f '{{.Module.Path}}'` has been installed to `go list -f '{{.Target}}'` && true

0 commit comments

Comments
 (0)