mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-07 17:23:19 +03:00
20 lines
332 B
Go
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)
|
|
},
|
|
})
|
|
}
|