1
0
Fork 0
mirror of https://github.com/Luzifer/password.git synced 2024-12-30 01:31:18 +00:00
password/main.go
Knut Ahlers 8b38d49ff9
Remove static versioning
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-09-22 15:29:21 +02:00

31 lines
421 B
Go

package main
import (
"github.com/Luzifer/password/lib"
"github.com/spf13/cobra"
)
var (
version = "dev"
)
var pwd *securepassword.SecurePassword
func init() {
pwd = securepassword.NewSecurePassword()
}
func main() {
rootCmd := cobra.Command{
Use: "password",
Short: "generates secure random passwords",
}
rootCmd.AddCommand(
getCmdGet(),
getCmdServe(),
getCmdVersion(),
)
rootCmd.Execute()
}