mirror of
https://github.com/spf13/cobra
synced 2025-05-04 20:37:24 +00:00
Merge b8a3344870
into ad6db7f8f6
This commit is contained in:
commit
0eac6aab90
2 changed files with 6 additions and 2 deletions
|
@ -37,6 +37,8 @@ If you have questions regarding Cobra, feel free to ask it in the community
|
|||
|
||||
### Quick steps to contribute
|
||||
|
||||
You'll need [golangci-lint] and [richgo] installed in order to run linting and unit tests
|
||||
|
||||
1. Fork the project.
|
||||
1. Download your fork to your PC (`git clone https://github.com/your_username/cobra && cd cobra`)
|
||||
1. Create your feature branch (`git checkout -b my-new-feature`)
|
||||
|
@ -48,3 +50,5 @@ If you have questions regarding Cobra, feel free to ask it in the community
|
|||
|
||||
<!-- Links -->
|
||||
[cobra-slack]: https://gophers.slack.com/archives/CD3LP1199
|
||||
[golangci-lint]: https://golangci-lint.run
|
||||
[richgo]: https://github.com/kyoh86/richgo
|
||||
|
|
4
Makefile
4
Makefile
|
@ -2,11 +2,11 @@ BIN="./bin"
|
|||
SRC=$(shell find . -name "*.go")
|
||||
|
||||
ifeq (, $(shell which golangci-lint))
|
||||
$(warning "could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh")
|
||||
$(warning "could not find golangci-lint in PATH, see here for installation details: https://golangci-lint.run/usage/install/")
|
||||
endif
|
||||
|
||||
ifeq (, $(shell which richgo))
|
||||
$(warning "could not find richgo in $(PATH), run: go install github.com/kyoh86/richgo@latest")
|
||||
$(warning "could not find richgo in PATH, run: go install github.com/kyoh86/richgo@latest")
|
||||
endif
|
||||
|
||||
.PHONY: fmt lint test install_deps clean
|
||||
|
|
Loading…
Add table
Reference in a new issue