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

Support go mod and Makefile #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#*
*~
stargazers
stargazer_cache/
stargazer_cache/

.format.txt
.idea
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.PHONY: help default clean stargazers

default: stargazers

clean:
rm -f ./stargazers

.format.txt: *.go analyze/*.go cmd/*.go fetch/*.go
gofmt -w .
echo "done" > .format.txt

stargazers: .format.txt *.go analyze/*.go cmd/*.go fetch/*.go Makefile
go build -mod=vendor -o stargazers .

help:
@echo "Usage: make [stargazers]"
@echo " stargazers Make the stargazers to ./stargazers"
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ Basic starting point:


```
stargazers :owner/:repo --token=:access_token
make &&
./stargazers -r :owner/:repo --token=:access_token
```

### Examples

```
stargazers cockroachdb/cockroach --token=f87456b1112dadb2d831a5792bf2ca9a6afca7bc
make &&
./stargazers -r cockroachdb/cockroach --token=f87456b1112dadb2d831a5792bf2ca9a6afca7bc
```

### Options
Expand Down
8 changes: 8 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module github.com/spencerkimball/stargazers

go 1.16

require (
github.com/kennygrant/sanitize v1.2.4
github.com/spf13/cobra v1.1.3
)
293 changes: 293 additions & 0 deletions go.sum

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading