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..."
|
@echo "building binary..."
|
||||||
@go build -o $(BIN_NAME) main.go && echo "$(BIN_NAME) built"
|
@go build -o $(BIN_NAME) main.go && echo "$(BIN_NAME) built"
|
||||||
|
|
||||||
install:
|
install: lint
|
||||||
@$(shell whereis $(BIN_NAME) | cut -d ' ' -f2 | xargs rm -f)
|
@$(shell whereis $(BIN_NAME) | cut -d ' ' -f2 | xargs rm -f)
|
||||||
@go install
|
@go install
|
||||||
@echo "program installed: $(GOPATH)/bin/hmdeploy"
|
@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 !
|
* Run it !
|
||||||
```bash
|
```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`
|
# if your are in the project dir with a `.homeserver`
|
||||||
# you can then launch the program directly
|
# you can then launch the program directly
|
||||||
hmdeploy
|
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 {
|
if dep := deps[idx]; d != nil {
|
||||||
errs = append(errs, dep.Error())
|
errs = append(errs, dep.Error())
|
||||||
if !d.destroy {
|
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