1
0
Fork 0
mirror of https://github.com/Luzifer/password.git synced 2024-11-08 17:30:10 +00:00
password/cmdVersion.go
Knut Ahlers 67e58e33c8
Fix: Copy&Paste error
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-01-01 14:01:49 +01:00

22 lines
378 B
Go

package main
import (
"fmt"
"github.com/spf13/cobra"
)
func getCmdVersion() *cobra.Command {
cmd := cobra.Command{
Use: "version",
Aliases: []string{"v"},
Short: "prints the current version of password",
Run: actionCmdVersion,
}
return &cmd
}
func actionCmdVersion(cmd *cobra.Command, args []string) {
fmt.Printf("password version %s\n", version)
}