From dbda7784fa30502b0fb713ad9162605c27a9ad20 Mon Sep 17 00:00:00 2001 From: rmanach Date: Wed, 9 Apr 2025 15:26:58 +0200 Subject: [PATCH] add lint before install + update README --- Makefile | 2 +- README.md | 11 +++++++++++ main.go | 4 +++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 850246c..7d61532 100644 --- a/Makefile +++ b/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" diff --git a/README.md b/README.md index c4628b8..1c5a262 100644 --- a/README.md +++ b/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 diff --git a/main.go b/main.go index 5ae084b..1abcf6a 100644 --- a/main.go +++ b/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 } } }