This commit is contained in:
a 2024-04-12 14:03:58 -05:00
parent 57bc8ada40
commit 978310c0d8
Signed by: a
GPG Key ID: 374BC539FE795AF0
2 changed files with 6 additions and 3 deletions

View File

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

View File

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