Browse Source

Break userConfigs out of main.go for easier configuration

pull/1/head
Gregory Rudolph 5 years ago
parent
commit
87105ef9f1
  1. 14
      main.go
  2. 16
      userConfigs.go

14
main.go

@ -10,20 +10,6 @@ import ( @@ -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

@ -0,0 +1,16 @@ @@ -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 = "/"
Loading…
Cancel
Save