Started project, created minimal shell
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"nshell/executor"
|
||||
"nshell/suggestions"
|
||||
|
||||
"github.com/c-bata/go-prompt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Wellcome to noko-shell(nshell) :3")
|
||||
|
||||
options := []prompt.Option{
|
||||
prompt.OptionPrefix("nshell ^^>"),
|
||||
prompt.OptionPrefixTextColor(prompt.Cyan),
|
||||
}
|
||||
|
||||
p := prompt.New(executor.Exec, suggestions.Completer, options...)
|
||||
p.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user