1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 14:27:23 +00:00

Allow users to join channel by supplying args

This commit is contained in:
Gregory Rudolph
2019-10-04 12:55:04 -04:00
parent 43bb85438f
commit f9bb61cbc3

View File

@ -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)
} }