系统控制台完成更新

This commit is contained in:
ryan
2026-06-12 14:12:03 +08:00
parent 407c1edf74
commit c916f566d9
34 changed files with 1297 additions and 40 deletions
+2 -8
View File
@@ -7,17 +7,11 @@ package cmd
import (
"log"
"github.com/Rain-kl/Wavelet/internal/buildinfo"
"github.com/Rain-kl/Wavelet/internal/db/migrator"
"github.com/spf13/cobra"
)
// Version is the application version string. It is set at link time via:
//
// -ldflags="-X github.com/Rain-kl/Wavelet/internal/cmd.Version=<version>"
//
// When not set (e.g. local `go run`), the value defaults to "dev".
var Version = "dev"
var rootCmd = &cobra.Command{
Use: "wavelet",
PreRun: func(_ *cobra.Command, _ []string) {
@@ -46,7 +40,7 @@ var rootCmd = &cobra.Command{
}
func init() {
rootCmd.Version = Version
rootCmd.Version = buildinfo.Version
rootCmd.CompletionOptions.DisableDefaultCmd = true
}