Files
beads/cmd/bd/version.go
Steve Yegge b4e37f9fb5 chore: Bump version to 0.9.4
Updated all component versions:
- bd CLI: 0.9.3 → 0.9.4
- Plugin: 0.9.3 → 0.9.4
- MCP server: 0.9.3 → 0.9.4
- Documentation: 0.9.3 → 0.9.4

Generated by scripts/bump-version.sh
2025-10-14 17:12:30 -07:00

34 lines
559 B
Go

package main
import (
"fmt"
"github.com/spf13/cobra"
)
const (
// Version is the current version of bd
Version = "0.9.4"
// Build can be set via ldflags at compile time
Build = "dev"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print version information",
Run: func(cmd *cobra.Command, args []string) {
if jsonOutput {
outputJSON(map[string]string{
"version": Version,
"build": Build,
})
} else {
fmt.Printf("bd version %s (%s)\n", Version, Build)
}
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}