release: v0.1 #7

Merged
bissendorf merged 6 commits from dev into main 2025-07-20 23:14:57 +00:00
38 changed files with 1372 additions and 0 deletions
Showing only changes of commit 723aae48ce - Show all commits

View File

@ -38,5 +38,6 @@ func initRootCmd() {
logger := jlog.New(slog.LevelDebug) logger := jlog.New(slog.LevelDebug)
ctx := jlog.ContextWith(context.Background(), logger) ctx := jlog.ContextWith(context.Background(), logger)
rootCmd.AddCommand(&versionCmd)
rootCmd.AddCommand(getVerbs(ctx, &appConfig)...) rootCmd.AddCommand(getVerbs(ctx, &appConfig)...)
} }

16
cmd/version.go Normal file
View File

@ -0,0 +1,16 @@
package cmd
import (
"fmt"
"git.bissendorf.co/bissendorf/unifood/m/v2/util"
"github.com/spf13/cobra"
)
var versionCmd = cobra.Command{
Use: "version",
Aliases: []string{"v"},
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(util.AppVersion)
},
}

3
util/version.go Normal file
View File

@ -0,0 +1,3 @@
package util
const AppVersion = "v0.1"