Merge branch 'openlink' of sloum/bombadillo into master

- Allows users to launch bombadillo with a url as a second param
This commit is contained in:
sloum 2019-05-08 22:24:31 -04:00 committed by Gitea
commit 2e3913f4db
1 changed files with 12 additions and 11 deletions

17
main.go
View File

@ -429,19 +429,20 @@ func main() {
} }
mainWindow := screen.Windows[0] mainWindow := screen.Windows[0]
firstLoad := true
for { if len(os.Args) > 1 {
if firstLoad { err = goToURL(os.Args[1])
firstLoad = false } else {
err := goHome() err = goHome()
}
if err == nil { if err != nil {
displayError(err)
} else {
updateMainContent() updateMainContent()
} }
continue
}
for {
c := cui.Getch() c := cui.Getch()
switch c { switch c {
case 'j', 'J': case 'j', 'J':