Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func createApp(cmd *cobra.Command, args []string) {
- appName := args[0]
- keyPair := app.CreateApp(appName, db)
- printResult(keyPair)
- }
- func getApp(cmd *cobra.Command, args []string) {
- publicKey := args[0]
- keyPair := app.GetApp(publicKey, db)
- printResult(keyPair)
- }
- func printResult(keyPair *app.App) {
- fmt.Println("Name: ", keyPair.Name)
- fmt.Println("Public Key: ", keyPair.PublicKey)
- fmt.Println("Secret Key: ", keyPair.SecretKey)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement