2021-06-08 23:16:37 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
// String vars that are free to be changed at compile time
|
|
|
|
var (
|
2021-10-13 14:42:35 +00:00
|
|
|
defaultHistDir = ""
|
2021-10-17 20:27:14 +00:00
|
|
|
commonRequirePaths = "';./libs/?/init.lua;./?/init.lua;./?/?.lua'"
|
2021-06-08 23:16:37 +00:00
|
|
|
|
2022-03-05 19:46:38 +00:00
|
|
|
prompt string
|
2021-06-08 23:16:37 +00:00
|
|
|
multilinePrompt = "> "
|
|
|
|
)
|
|
|
|
|
2022-05-16 23:36:34 +00:00
|
|
|
// Version info
|
|
|
|
var (
|
2023-02-18 16:30:15 +00:00
|
|
|
ver = "v2.2.0"
|
|
|
|
releaseName = "Poppy"
|
2023-04-10 16:38:30 +00:00
|
|
|
|
2022-05-16 23:36:34 +00:00
|
|
|
gitCommit string
|
|
|
|
gitBranch string
|
|
|
|
)
|
|
|
|
|
2021-06-08 23:16:37 +00:00
|
|
|
// Flags
|
|
|
|
var (
|
|
|
|
running bool // Is a command currently running
|
|
|
|
interactive bool
|
|
|
|
login bool // Are we the login shell?
|
|
|
|
noexecute bool // Should we run Lua or only report syntax errors
|
2022-03-06 21:20:41 +00:00
|
|
|
initialized bool
|
2021-06-08 23:16:37 +00:00
|
|
|
)
|
|
|
|
|