Adopt ReleaseKit runtime version and register its tool

This commit is contained in:
2026-11-23 19:18:48 +00:00
parent 7e6cbd9d7a
commit 40eba90f47
8 changed files with 36 additions and 115 deletions

View File

@@ -5,8 +5,8 @@ import (
"fmt"
"io"
"gitea.maximumdirect.net/eric/notarius/internal/buildinfo"
"go.maximumdirect.net/commandkit"
"go.maximumdirect.net/releasekit/buildinfo"
)
func Run(args []string, stdout, stderr io.Writer) int {
@@ -14,12 +14,7 @@ func Run(args []string, stdout, stderr io.Writer) int {
}
func RunWithOptions(args []string, stdout, stderr io.Writer, options Options) int {
version, err := buildinfo.Version()
if err != nil {
fmt.Fprintf(stderr, "notarius: %v\n", err)
return 1
}
app, err := NewApplication(version, options)
app, err := NewApplication(buildinfo.Version(), options)
if err != nil {
fmt.Fprintf(stderr, "notarius: %v\n", err)
return 1