From 978310c0d8ed26e8b0de8dcb796a67972f1de92d Mon Sep 17 00:00:00 2001 From: a Date: Fri, 12 Apr 2024 14:03:58 -0500 Subject: [PATCH] sync --- .config/boilr/templates/fx/template/component.go | 7 +++++-- .local/script/gitsave | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.config/boilr/templates/fx/template/component.go b/.config/boilr/templates/fx/template/component.go index ba36de4..41783ad 100644 --- a/.config/boilr/templates/fx/template/component.go +++ b/.config/boilr/templates/fx/template/component.go @@ -5,6 +5,7 @@ import ( "log/slog" "go.uber.org/fx" + "gfx.cafe/util/go/fxplus" ) type {{title Package}} struct { @@ -22,6 +23,7 @@ type Result struct { fx.Out Output *{{title Package}} + Healther fxplus.Healther } func New(p Params) (r Result, err error) { @@ -29,9 +31,10 @@ func New(p Params) (r Result, err error) { o.log = p.Log r.Output = o + r.Healther = o return } -func (o *{{title Package}}) Health(ctx context.Context) (bool, error) { - return true, nil +func (o *{{title Package}}) Health(ctx context.Context) (error) { + return nil } diff --git a/.local/script/gitsave b/.local/script/gitsave index b5dc002..14f60ac 100755 --- a/.local/script/gitsave +++ b/.local/script/gitsave @@ -6,7 +6,7 @@ if [ "$#" -eq 0 ]; then git commit -m "a" else array=("$@") - str="'${array[@]}'" + str="${array[@]}" git commit -m "$str" fi git push