feat: add "key-rotate" command (#709)

This commit is contained in:
Alessandro (Ale) Segala
2025-07-03 13:23:24 -07:00
committed by GitHub
parent 15ece0ab30
commit 8c8fc2304d
9 changed files with 465 additions and 87 deletions

View File

@@ -0,0 +1,19 @@
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)
},
})
}