working on ui

This commit is contained in:
Zack Scholl 2017-10-17 19:01:01 -06:00
parent 0b9eaa1e1e
commit 67f7a9b965
1 changed files with 7 additions and 4 deletions

11
main.go
View File

@ -41,14 +41,17 @@ func main() {
return
}
connectionTypeFlag = "s" // sender
if len(codePhraseFlag) == 0 {
codePhraseFlag = GetRandomName()
getInput("Your code phrase is '" + GetRandomName() + "' (press okay)")
}
} else {
connectionTypeFlag = "r" //receiver
}
if !runAsRelay {
if len(codePhraseFlag) == 0 {
codePhraseFlag = getInput("What is your code phrase? ")
if len(codePhraseFlag) < 5 {
codePhraseFlag = GetRandomName()
fmt.Println("Your code phrase is now " + codePhraseFlag)
}
}
}