mirror of https://github.com/Hilbis/Hilbish
Compare commits
No commits in common. "08c56a54ca10fba5bac178e1c0d2051253888df9" and "94f0ccf9f6c2118ededab7605bf976af83b045ec" have entirely different histories.
08c56a54ca
...
94f0ccf9f6
25
main.go
25
main.go
|
@ -2,36 +2,35 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
hooks "hilbish/golibs/bait"
|
||||
"io"
|
||||
"os"
|
||||
"os/signal"
|
||||
"os/user"
|
||||
"strings"
|
||||
|
||||
hooks "hilbish/golibs/bait"
|
||||
|
||||
"github.com/akamensky/argparse"
|
||||
"github.com/bobappleyard/readline"
|
||||
"github.com/yuin/gopher-lua"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
"golang.org/x/term"
|
||||
)
|
||||
|
||||
const version = "0.3.2"
|
||||
|
||||
var (
|
||||
l *lua.LState
|
||||
var l *lua.LState
|
||||
|
||||
// User's prompt, this will get set when lua side is initialized
|
||||
prompt string
|
||||
multilinePrompt = "> "
|
||||
var prompt string
|
||||
var multilinePrompt = "> "
|
||||
|
||||
commands = map[string]bool{}
|
||||
aliases = map[string]string{}
|
||||
// Map of builtin/custom commands defined in the commander lua module
|
||||
var commands = map[string]bool{}
|
||||
|
||||
bait hooks.Bait
|
||||
homedir string
|
||||
running bool
|
||||
)
|
||||
// Command aliases
|
||||
var aliases = map[string]string{}
|
||||
var bait hooks.Bait
|
||||
var homedir string
|
||||
var running bool
|
||||
|
||||
func main() {
|
||||
homedir, _ = os.UserHomeDir()
|
||||
|
|
Loading…
Reference in New Issue