mirror of https://github.com/Rudi9719/kbtui.git
Gregory Rudolph
5 years ago
2 changed files with 35 additions and 2 deletions
@ -0,0 +1,25 @@ |
|||||||
|
// +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") |
||||||
|
} |
Loading…
Reference in new issue