add lint before install + update README
This commit is contained in:
parent
ab1f5a79c3
commit
dbda7784fa
2
Makefile
2
Makefile
@ -7,7 +7,7 @@ build: lint
|
||||
@echo "building binary..."
|
||||
@go build -o $(BIN_NAME) main.go && echo "$(BIN_NAME) built"
|
||||
|
||||
install:
|
||||
install: lint
|
||||
@$(shell whereis $(BIN_NAME) | cut -d ' ' -f2 | xargs rm -f)
|
||||
@go install
|
||||
@echo "program installed: $(GOPATH)/bin/hmdeploy"
|
||||
|
||||
11
README.md
11
README.md
@ -116,6 +116,17 @@ The binary is then installed in your **$GOPATH/bin**.
|
||||
|
||||
* Run it !
|
||||
```bash
|
||||
hmdeploy --help
|
||||
Usage of hmdeploy:
|
||||
-debug
|
||||
show debug logs
|
||||
-destroy
|
||||
delete the deployed project
|
||||
-no-nginx
|
||||
no Nginx deployment
|
||||
-path string
|
||||
define the .homeserver project root dir (default ".")
|
||||
|
||||
# if your are in the project dir with a `.homeserver`
|
||||
# you can then launch the program directly
|
||||
hmdeploy
|
||||
|
||||
4
main.go
4
main.go
@ -107,7 +107,9 @@ func (d *Deployers) waitForCompletion(s *scheduler.Scheduler) error {
|
||||
if dep := deps[idx]; d != nil {
|
||||
errs = append(errs, dep.Error())
|
||||
if !d.destroy {
|
||||
s.Submit(scheduler.NewTask(string(dep.Type()), dep.Clear)) //nolint: errcheck // TODO
|
||||
s.Submit(
|
||||
scheduler.NewTask(string(dep.Type()), dep.Clear),
|
||||
) //nolint: errcheck // TODO
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user