mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 09:57:24 +00:00
Break userConfigs out of main.go for easier configuration
This commit is contained in:
14
main.go
14
main.go
@ -10,20 +10,6 @@ import (
|
|||||||
"samhofi.us/x/keybase"
|
"samhofi.us/x/keybase"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Configurable section
|
|
||||||
var downloadPath = "/tmp/"
|
|
||||||
var outputFormat = "┌──[$USER@$DEVICE] [$ID] [$DATE - $TIME]\n└╼ $MSG"
|
|
||||||
|
|
||||||
// 02 = Day, Jan = Month, 06 = Year
|
|
||||||
var dateFormat = "02Jan06"
|
|
||||||
|
|
||||||
// 15 = hours, 04 = minutes, 05 = seconds
|
|
||||||
var timeFormat = "15:04"
|
|
||||||
|
|
||||||
// End configurable section
|
|
||||||
|
|
||||||
const cmdPrefix = "/"
|
|
||||||
|
|
||||||
var commands = make(map[string]Command)
|
var commands = make(map[string]Command)
|
||||||
var baseCommands = make([]string, 0)
|
var baseCommands = make([]string, 0)
|
||||||
|
|
||||||
|
|||||||
16
userConfigs.go
Normal file
16
userConfigs.go
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
// Path where Downloaded files will default to
|
||||||
|
var downloadPath = "/tmp/"
|
||||||
|
|
||||||
|
// BASH-like PS1 variable equivalent (without colours)
|
||||||
|
var outputFormat = "┌──[$USER@$DEVICE] [$ID] [$DATE - $TIME]\n└╼ $MSG"
|
||||||
|
|
||||||
|
// 02 = Day, Jan = Month, 06 = Year
|
||||||
|
var dateFormat = "02Jan06"
|
||||||
|
|
||||||
|
// 15 = hours, 04 = minutes, 05 = seconds
|
||||||
|
var timeFormat = "15:04"
|
||||||
|
|
||||||
|
// The prefix before evaluating a command
|
||||||
|
var cmdPrefix = "/"
|
||||||
Reference in New Issue
Block a user