Skip to content

Commit

Permalink
Merge pull request #18 from viatoriche/ramlcli
Browse files Browse the repository at this point in the history
add cli: raml
  • Loading branch information
viatoriche authored Sep 24, 2024
2 parents 6f3f6fa + dcea91e commit 92d811c
Show file tree
Hide file tree
Showing 19 changed files with 601 additions and 168 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
*.tokens
cover.html
cover.out
.build
23 changes: 16 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# Directory containing the Makefile.
PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

export PATH := $(GOBIN):$(PATH)

BENCH_FLAGS ?= -cpuprofile=cpu.pprof -memprofile=mem.pprof -benchmem

# Directories that we want to test and track coverage for.
TEST_DIRS = .

.PHONY: all
all: lint cover

Expand All @@ -23,3 +16,19 @@ test:
cover:
@go test -coverprofile=cover.out -coverpkg=./... ./... \
&& go tool cover -html=cover.out -o cover.html

.PHONY: build
build: go-build

.PHONY: go-build
go-build:
@cd cmd/raml && go build -o ../../.build/raml

.PHONY: install
install: go-install

.PHONY: go-install
go-install:
@cd cmd/raml && \
go install -v ./... \
&& echo `go list -f '{{.Module.Path}}'` has been installed to `go list -f '{{.Target}}'` && true
Loading

0 comments on commit 92d811c

Please sign in to comment.