Started project, created minimal shell

This commit is contained in:
2026-10-21 23:39:58 +03:00
parent 3cb4c4bfe6
commit b40fbc95f8
6 changed files with 125 additions and 0 deletions
+22
View File
@@ -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()
}