add lint before install + update README

This commit is contained in:
rmanach 2025-04-09 15:26:58 +02:00
parent ab1f5a79c3
commit dbda7784fa
3 changed files with 15 additions and 2 deletions

View File

@ -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"

View File

@ -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

View File

@ -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
} }
} }
} }