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