feat: remove version cmd (#675)

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias authored and GitHub committed 2019-02-15 12:54:44 +01:00
1 parent 4a4f635816
commit 85899acae6
8 files changed
+24 -44

No files matched your search

+4 -5
View File
@@ -12,11 +12,10 @@ func init() {
}
var hashCmd = &cobra.Command{
Use: "hash <password>",
Version: rootCmd.Version,
Short: "Hashes a password",
Long: `Hashes a password using bcrypt algorithm.`,
Args: cobra.ExactArgs(1),
Use: "hash <password>",
Short: "Hashes a password",
Long: `Hashes a password using bcrypt algorithm.`,
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
pwd, err := users.HashPwd(args[0])
checkErr(err)