From 529dc8c03e12cbe60a8abbcc9e15c3b4a2800e90 Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 8 Oct 2018 21:49:05 -0700 Subject: [PATCH] Handle linking_successful message (that i just wrote) --- cmd/signald-cli/cmd/link.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/signald-cli/cmd/link.go b/cmd/signald-cli/cmd/link.go index 0ce0180..81544a3 100644 --- a/cmd/signald-cli/cmd/link.go +++ b/cmd/signald-cli/cmd/link.go @@ -58,6 +58,14 @@ var linkCmd = &cobra.Command{ } else { qrterminal.Generate(message.Data.URI, qrterminal.M, os.Stdout) } + break + + case "linking_successful": + if !uriOrQR { + fmt.Println("Successfully linked") + os.Exit(0) + } + break } } }