1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 08:47:24 +00:00

Break userConfigs out of main.go for easier configuration

This commit is contained in:
Gregory Rudolph
2019-10-03 10:53:37 -04:00
parent aa62382868
commit 87105ef9f1
2 changed files with 16 additions and 14 deletions

14
main.go
View File

@ -10,20 +10,6 @@ import (
"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 baseCommands = make([]string, 0)

16
userConfigs.go Normal file
View 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 = "/"