Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed old CLI #608

Merged
merged 6 commits into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/release.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .goreleaser.yml

This file was deleted.

27 changes: 4 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
.PHONY: build install compile test e2e doc fmt lint vet release

export GOPATH
export GO111MODULE=on

VERSION ?= $(shell git describe --tags --always --dirty)
RELEASE_VERSION ?= $(version)
DIR_BIN = ./bin
DIR_PKG = ./pkg
DIR_CLI = ./cli
DIR_E2E = ./e2e

default: build
Expand All @@ -19,8 +13,7 @@ install:

compile:
go build -race -v -o ${DIR_BIN}/ferret \
-ldflags "-X main.version=${VERSION}" \
./main.go
${DIR_E2E}/cli.go

test:
go test -race ${DIR_PKG}/...
Expand All @@ -30,7 +23,7 @@ cover:
curl -s https://codecov.io/bash | bash

e2e:
lab --timeout=120 --times=5 --concurrency=1 --wait=http://127.0.0.1:9222/json/version --runtime=bin://./bin/ferret --files=./e2e/tests --cdn=./e2e/pages/dynamic --cdn=./e2e/pages/static
lab --timeout=120 --attempts=5 --concurrency=1 --wait=http://127.0.0.1:9222/json/version --runtime=bin://./bin/ferret --files=./e2e/tests --cdn=./e2e/pages/dynamic --cdn=./e2e/pages/static

bench:
go test -run=XXX -bench=. ${DIR_PKG}/...
Expand All @@ -43,7 +36,7 @@ doc:

# http://golang.org/cmd/go/#hdr-Run_gofmt_on_package_sources
fmt:
go fmt ${DIR_CLI}/... ${DIR_PKG}/...
go fmt ${DIR_PKG}/...

# https://github.com/mgechev/revive
# go get github.com/mgechev/revive
Expand All @@ -53,16 +46,4 @@ lint:
# http://godoc.org/code.google.com/p/go.tools/cmd/vet
# go get code.google.com/p/go.tools/cmd/vet
vet:
go vet ${DIR_CLI}/... ${DIR_PKG}/...

release:
ifeq ($(RELEASE_VERSION), )
$(error "Release version is required (version=x)")
else ifeq ($(GITHUB_TOKEN), )
$(error "GitHub token is required (GITHUB_TOKEN)")
else
rm -rf ./dist && \
git tag -a v$(RELEASE_VERSION) -m "New $(RELEASE_VERSION) version" && \
git push origin v$(RELEASE_VERSION) && \
goreleaser
endif
go vet ${DIR_PKG}/...
50 changes: 0 additions & 50 deletions cli/autocompleter.go

This file was deleted.

72 changes: 0 additions & 72 deletions cli/browser/browser.go

This file was deleted.

124 changes: 0 additions & 124 deletions cli/browser/flags.go

This file was deleted.

Loading