22 lines
306 B
Go
22 lines
306 B
Go
package main
|
|
|
|
import (
|
|
"bbash/command"
|
|
"bbash/environment"
|
|
"bbash/input_parser"
|
|
"fmt"
|
|
)
|
|
|
|
|
|
func main() {
|
|
env := environment.Get_env()
|
|
command.Init(&env)
|
|
|
|
for {
|
|
fmt.Print(fmt.Sprintf("%s > ", env.Path))
|
|
in_parsed := input_parser.Parse()
|
|
command.Run_command(in_parsed, &env)
|
|
fmt.Println()
|
|
}
|
|
}
|