Handle linking_successful message (that i just wrote)
This commit is contained in:
parent
a0c3390da3
commit
529dc8c03e
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue