Skip to content

Commit 68e1aa9

Browse files
author
Stanley Chin
committed
init config
1 parent 2b9e106 commit 68e1aa9

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
bin

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ This project uses Go.
1010

1111
### Prerequisites
1212

13-
TODO: Pre-install the config file.
14-
At the moment:
15-
1613
```
17-
mkdir ~/.salmon
18-
touch config.yaml
14+
make init
1915
```
2016

2117
config.yaml

bin/salmon

11.3 MB
Binary file not shown.

makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ run: build ## Build & Run
1717
install:
1818
go build -i -o ./bin/salmon ./cmd/main.go
1919

20+
init:
21+
mkdir -p ~/.salmon && echo "user:\nrepo:\nowner:\nfull_name:\ntoken:\n" > ~/.salmon/config2.yaml
22+
2023
clean: ## Remove temporary files
2124
go clean
2225

23-
# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
2426
help:
2527
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
2628

0 commit comments

Comments
 (0)