mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 11:07:22 +00:00
Allow users to join channel by supplying args
This commit is contained in:
6
main.go
6
main.go
@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@ -35,6 +36,11 @@ func main() {
|
||||
g = kbtui
|
||||
go populateList()
|
||||
go updateChatWindow()
|
||||
if len(os.Args) > 1 {
|
||||
os.Args[0] = "join"
|
||||
RunCommand(os.Args...)
|
||||
|
||||
}
|
||||
if err := initKeybindings(); err != nil {
|
||||
log.Printf("%+v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user