feat(release): update release process to include linting and testing

This commit is contained in:
2026-09-10 22:21:40 +02:00
parent 19a2cc1fe3
commit ca226e83df
6 changed files with 28 additions and 6 deletions
+2
View File
@@ -5,6 +5,8 @@ import (
"os"
)
// asciiLogo (see version.go) is printed by the `version` command.
func main() {
args := os.Args[1:]
isSilent := hasSilentFlag(args)
+2 -1
View File
@@ -3,8 +3,9 @@ package main
import (
"fmt"
"git.warky.dev/wdevs/relspecgo/pkg/buildinfo"
"github.com/spf13/cobra"
"git.warky.dev/wdevs/relspecgo/pkg/buildinfo"
)
// version/buildDate mirror pkg/buildinfo so existing call sites keep working.
+5 -2
View File
@@ -4,13 +4,16 @@ import (
"fmt"
"github.com/spf13/cobra"
"git.warky.dev/wdevs/relspecgo/pkg/buildinfo"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print version information",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("RelSpec %s\n", version)
fmt.Printf("Built: %s\n", buildDate)
fmt.Print(buildinfo.AsciiLogo)
fmt.Printf("RelSpec %s\n", buildinfo.Version)
fmt.Printf("Built: %s\n", buildinfo.BuildDate)
},
}