mirror of
https://github.com/aljazceru/ark.git
synced 2026-01-15 17:54:21 +01:00
* CLI skeleton * noah CLI: send flags * add cypher.go file * fix .PHONY * add password_hash in state.json * encode public key using common pkg * use common.DecodeUrl * remove cli.Exit calls * redeem command: make --amount flag optional only if --force is not set * remove validateURL func * chmod +x scripts/build-noah * Update cmd/noah/redeem.go Co-authored-by: João Bordalo <bordalix@users.noreply.github.com> * Update cmd/noah/redeem.go Co-authored-by: João Bordalo <bordalix@users.noreply.github.com> * Update cmd/noah/init.go Co-authored-by: João Bordalo <bordalix@users.noreply.github.com> * Update cmd/noah/main.go Co-authored-by: João Bordalo <bordalix@users.noreply.github.com> * Update cmd/noah/send.go Co-authored-by: João Bordalo <bordalix@users.noreply.github.com> * rework receive and send * Update cmd/noah/send.go Co-authored-by: João Bordalo <bordalix@users.noreply.github.com> * Update cmd/noah/send.go Co-authored-by: João Bordalo <bordalix@users.noreply.github.com> * Update cmd/noah/redeem.go Co-authored-by: João Bordalo <bordalix@users.noreply.github.com> * receive command: return ark address --------- Co-authored-by: bordalix <joao.bordalo@gmail.com> Co-authored-by: João Bordalo <bordalix@users.noreply.github.com>
63 lines
1.4 KiB
Makefile
Executable File
63 lines
1.4 KiB
Makefile
Executable File
.PHONY: build build-noah clean cov help intergrationtest lint run test vet proto proto-lint
|
|
|
|
## build: build for all platforms
|
|
build:
|
|
@echo "Building coordinatord binary..."
|
|
@bash ./scripts/build
|
|
|
|
build-noah:
|
|
@echo "Building noah binary..."
|
|
@bash ./scripts/build-noah
|
|
|
|
## clean: cleans the binary
|
|
clean:
|
|
@echo "Cleaning..."
|
|
@go clean
|
|
|
|
## cov: generates coverage report
|
|
cov:
|
|
@echo "Coverage..."
|
|
@go test -cover ./...
|
|
|
|
## help: prints this help message
|
|
help:
|
|
@echo "Usage: \n"
|
|
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
|
|
|
|
## intergrationtest: runs integration tests
|
|
integrationtest:
|
|
@echo "Running integration tests..."
|
|
@go test -v -count=1 -race ./... $(go list ./... | grep internal/test)
|
|
|
|
## lint: lint codebase
|
|
lint:
|
|
@echo "Linting code..."
|
|
@golangci-lint run --fix
|
|
|
|
## run: run in dev mode
|
|
run: clean
|
|
@echo "Running coordinatord in dev mode..."
|
|
@export ARK_COORDINATOR_WALLET_ADDR=localhost:18000; \
|
|
go run ./cmd/coordinatord
|
|
|
|
## test: runs unit and component tests
|
|
test:
|
|
@echo "Running unit tests..."
|
|
@find . -name go.mod -execdir go test -v -count=1 -race ./... $(go list ./... | grep -v internal/test) \;
|
|
|
|
## vet: code analysis
|
|
vet:
|
|
@echo "Running code analysis..."
|
|
@go vet ./...
|
|
|
|
## proto: compile proto stubs
|
|
proto: proto-lint
|
|
@echo "Compiling stubs..."
|
|
@buf generate buf.build/vulpemventures/ocean
|
|
@buf generate
|
|
|
|
## proto-lint: lint protos
|
|
proto-lint:
|
|
@echo "Linting protos..."
|
|
@buf lint
|
|
|