Handle linking_successful message (that i just wrote)

This commit is contained in:
Finn 2018-10-08 21:49:05 -07:00
parent a0c3390da3
commit 529dc8c03e

View file

@ -58,6 +58,14 @@ var linkCmd = &cobra.Command{
} else { } else {
qrterminal.Generate(message.Data.URI, qrterminal.M, os.Stdout) qrterminal.Generate(message.Data.URI, qrterminal.M, os.Stdout)
} }
break
case "linking_successful":
if !uriOrQR {
fmt.Println("Successfully linked")
os.Exit(0)
}
break
} }
} }
} }