This commit is contained in:
parent
c287cefd77
commit
57bc8ada40
|
@ -1,6 +1,7 @@
|
||||||
package {{Package}}
|
package {{Package}}
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
|
|
||||||
"go.uber.org/fx"
|
"go.uber.org/fx"
|
||||||
|
@ -30,3 +31,7 @@ func New(p Params) (r Result, err error) {
|
||||||
r.Output = o
|
r.Output = o
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (o *{{title Package}}) Health(ctx context.Context) (bool, error) {
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
git add -A
|
git add -A
|
||||||
if [ "$#" -ne 1 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
git commit -m "a"
|
git commit -m "a"
|
||||||
else
|
else
|
||||||
git commit -m $@
|
array=("$@")
|
||||||
|
str="'${array[@]}'"
|
||||||
|
git commit -m "$str"
|
||||||
fi
|
fi
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,7 @@ go install honnef.co/go/tools/cmd/keyify@master
|
||||||
go install github.com/fatih/motion@latest
|
go install github.com/fatih/motion@latest
|
||||||
go install github.com/koron/iferr@master
|
go install github.com/koron/iferr@master
|
||||||
go install golang.org/x/perf/cmd/benchstat@latest
|
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 github.com/wader/bump/cmd/bump@latest
|
||||||
go install mvdan.cc/gofumpt@latest
|
go install mvdan.cc/gofumpt@latest
|
||||||
go install github.com/jackc/tern/v2@latest
|
|
||||||
|
|
||||||
asdf reshim golang
|
asdf reshim golang
|
||||||
|
|
|
@ -12,6 +12,8 @@ prefix="https://"
|
||||||
stripped="${stripped#"$prefix"}"
|
stripped="${stripped#"$prefix"}"
|
||||||
prefix="git@"
|
prefix="git@"
|
||||||
stripped="${stripped#"$prefix"}"
|
stripped="${stripped#"$prefix"}"
|
||||||
|
suffix=".git"
|
||||||
|
stripped="${stripped%"$suffix"}"
|
||||||
stripped=$(echo "$stripped" | sed -e "s/:/\//1")
|
stripped=$(echo "$stripped" | sed -e "s/:/\//1")
|
||||||
echo $stripped
|
echo $stripped
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue