From 57bc8ada40c5e7aa0dffb25edad956ac793f2e04 Mon Sep 17 00:00:00 2001 From: a Date: Tue, 2 Apr 2024 23:34:54 -0500 Subject: [PATCH] ok --- .config/boilr/templates/fx/template/component.go | 5 +++++ .local/script/gitsave | 10 ++++++---- .local/script/goinstallbinaries | 4 ---- .local/script/repotool | 2 ++ 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.config/boilr/templates/fx/template/component.go b/.config/boilr/templates/fx/template/component.go index 62ad086..ba36de4 100644 --- a/.config/boilr/templates/fx/template/component.go +++ b/.config/boilr/templates/fx/template/component.go @@ -1,6 +1,7 @@ package {{Package}} import ( + "context" "log/slog" "go.uber.org/fx" @@ -30,3 +31,7 @@ func New(p Params) (r Result, err error) { r.Output = o return } + +func (o *{{title Package}}) Health(ctx context.Context) (bool, error) { + return true, nil +} diff --git a/.local/script/gitsave b/.local/script/gitsave index f21c0ee..b5dc002 100755 --- a/.local/script/gitsave +++ b/.local/script/gitsave @@ -1,11 +1,13 @@ -#!/bin/sh +#!/bin/bash git add -A -if [ "$#" -ne 1 ]; then -git commit -m "a" +if [ "$#" -eq 0 ]; then + git commit -m "a" else -git commit -m $@ + array=("$@") + str="'${array[@]}'" + git commit -m "$str" fi git push diff --git a/.local/script/goinstallbinaries b/.local/script/goinstallbinaries index d7f5145..b0cddbf 100755 --- a/.local/script/goinstallbinaries +++ b/.local/script/goinstallbinaries @@ -19,11 +19,7 @@ go install honnef.co/go/tools/cmd/keyify@master go install github.com/fatih/motion@latest go install github.com/koron/iferr@master go install golang.org/x/perf/cmd/benchstat@latest -go install github.com/Quasilyte/go-benchrun@latest -go install github.com/tmrts/boilr@latest -go install github.com/goreleaser/goreleaser@latest go install github.com/wader/bump/cmd/bump@latest go install mvdan.cc/gofumpt@latest -go install github.com/jackc/tern/v2@latest asdf reshim golang diff --git a/.local/script/repotool b/.local/script/repotool index 1d61609..093751b 100755 --- a/.local/script/repotool +++ b/.local/script/repotool @@ -12,6 +12,8 @@ prefix="https://" stripped="${stripped#"$prefix"}" prefix="git@" stripped="${stripped#"$prefix"}" +suffix=".git" +stripped="${stripped%"$suffix"}" stripped=$(echo "$stripped" | sed -e "s/:/\//1") echo $stripped }