Browse Source

Allow users to join channel by supplying args

pull/1/head
Gregory Rudolph 5 years ago
parent
commit
f9bb61cbc3
  1. 6
      main.go

6
main.go

@ -3,6 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"log" "log"
"os"
"strings" "strings"
"time" "time"
@ -35,6 +36,11 @@ func main() {
g = kbtui g = kbtui
go populateList() go populateList()
go updateChatWindow() go updateChatWindow()
if len(os.Args) > 1 {
os.Args[0] = "join"
RunCommand(os.Args...)
}
if err := initKeybindings(); err != nil { if err := initKeybindings(); err != nil {
log.Printf("%+v", err) log.Printf("%+v", err)
} }

Loading…
Cancel
Save