mirror of https://github.com/Rudi9719/kbtui.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
398 B
26 lines
398 B
5 years ago
|
// +build !rm_basic_commands allcommands devcmd
|
||
|
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
command := Command{
|
||
|
Cmd: []string{"dev"},
|
||
|
Description: "- Switch to dev channels",
|
||
|
Help: "",
|
||
|
Exec: cmdDev,
|
||
|
}
|
||
|
|
||
|
RegisterCommand(command)
|
||
|
}
|
||
|
|
||
|
func cmdDev(cmd []string) {
|
||
|
dev = !dev
|
||
|
|
||
|
printInfo(fmt.Sprintf("You have toggled the dev flag to %+v", dev))
|
||
|
clearView("Chat")
|
||
|
}
|