2015-05-02 13:03:27 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/Luzifer/password/lib"
|
2015-05-29 18:20:04 +00:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
version = "1.3.0"
|
2015-05-02 13:03:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var pwd *securepassword.SecurePassword
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
pwd = securepassword.NewSecurePassword()
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
2015-05-29 18:20:04 +00:00
|
|
|
rootCmd := cobra.Command{
|
|
|
|
Use: "password",
|
|
|
|
Short: "generates secure random passwords",
|
2015-05-02 23:05:30 +00:00
|
|
|
}
|
|
|
|
|
2015-05-29 18:20:04 +00:00
|
|
|
rootCmd.AddCommand(
|
|
|
|
getCmdGet(),
|
|
|
|
getCmdServe(),
|
|
|
|
getCmdVersion(),
|
|
|
|
)
|
2015-05-02 13:03:27 +00:00
|
|
|
|
2015-05-29 18:20:04 +00:00
|
|
|
rootCmd.Execute()
|
2015-05-10 14:38:17 +00:00
|
|
|
}
|