1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-04 18:34:50 +00:00
Files
pocket-id/backend/internal/cmds/version.go
2025-07-03 22:23:24 +02:00

20 lines
332 B
Go

package cmds
import (
"fmt"
"github.com/spf13/cobra"
"github.com/pocket-id/pocket-id/backend/internal/common"
)
func init() {
rootCmd.AddCommand(&cobra.Command{
Use: "version",
Short: "Print the version number",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("pocket-id " + common.Version)
},
})
}