23 lines
365 B
Go
23 lines
365 B
Go
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()
|
|
}
|