-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now that I have another year of development with Go under my belt I thought I would re-write this a bit to clean up the unnecessary directories and packages.
- Loading branch information
Showing
22 changed files
with
889 additions
and
443 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/coverage.out | ||
/go.sum | ||
/pciids | ||
dist | ||
site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,40 @@ | ||
.PHONY: all | ||
all: build | ||
|
||
.PHONY: build | ||
build: | ||
go build -o pciids ./app/pciids/ | ||
go build -o pciids | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f pciids coverage.out go.sum | ||
rm -f pciids coverage.out | ||
rm -rf dist/ site/ | ||
|
||
.PHONY: docs | ||
docs: | ||
mkdocs build | ||
|
||
.PHONY: docs-api | ||
docs-api: | ||
echo "View docs at: http://localhost:6060/pkg/pciids/" | ||
godoc -http=localhost:6060 | ||
|
||
.PHONY: lint | ||
lint: | ||
golangci-lint run | ||
|
||
.PHONY: release | ||
release: clean | ||
goreleaser | ||
|
||
.PHONY: release-snapshot | ||
release-snapshot: clean | ||
goreleaser --rm-dist --skip-publish --snapshot | ||
|
||
.PHONY: test | ||
test: | ||
go test -cover -coverprofile=coverage.out ./pkg/... | ||
go test -cover -coverprofile=coverage.out ./... | ||
|
||
.PHONY: test-coverage | ||
test-coverage: test | ||
go tool cover -html=coverage.out | ||
|
||
.PHONY: all build clean docs docs-api lint release release-snapshot test test-coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
module github.com/powersj/pciids | ||
|
||
go 1.14 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/pkg/errors v0.8.1 | ||
github.com/sirupsen/logrus v1.2.0 | ||
github.com/spf13/cobra v1.1.1 | ||
github.com/stretchr/testify v1.3.0 | ||
github.com/pkg/errors v0.9.1 | ||
github.com/sirupsen/logrus v1.8.1 | ||
github.com/spf13/cobra v1.2.1 | ||
github.com/stretchr/testify v1.7.0 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect | ||
) |
Oops, something went wrong.