From 87105ef9f17f26263761c2cf58c042702527c40d Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 3 Oct 2019 10:53:37 -0400 Subject: [PATCH] Break userConfigs out of main.go for easier configuration --- main.go | 14 -------------- userConfigs.go | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 userConfigs.go diff --git a/main.go b/main.go index 561a058..98bc7a6 100644 --- a/main.go +++ b/main.go @@ -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) diff --git a/userConfigs.go b/userConfigs.go new file mode 100644 index 0000000..85dd744 --- /dev/null +++ b/userConfigs.go @@ -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 = "/"