1
0
Fork 0
mirror of https://github.com/Luzifer/password.git synced 2024-12-20 21:01:17 +00:00
password/main.go

32 lines
421 B
Go
Raw Permalink Normal View History

2015-05-02 13:03:27 +00:00
package main
import (
"github.com/Luzifer/password/lib"
"github.com/spf13/cobra"
)
var (
version = "dev"
2015-05-02 13:03:27 +00:00
)
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(),
)
2015-05-02 13:03:27 +00:00
rootCmd.Execute()
2015-05-10 14:38:17 +00:00
}