goint there

This commit is contained in:
didier.amyot committed 2014-07-30 15:02:28 -04:00
1 parent 776c73b91c
commit c94a2042f1
7 files changed
+292 -36

No files matched your search

+4 -2
View File
@@ -17,7 +17,10 @@ var createKeyCommand = cli.Command{
},
Action: func(c *cli.Context) {
keyGenerator := new(KeyGenerator)
keyGenerator.CreateNewKey(c.Int("size"), c.String("password"))
fmt.Println("creating key")
if err := keyGenerator.CreateNewKey(c.Int("size")); err != nil {
fmt.Println("error while creating the key\n", err)
}
},
}
@@ -29,6 +32,5 @@ func main() {
createKeyCommand,
}
fmt.Println(os.Args)
app.Run(os.Args)
}