Merge branch 'Flodman'
This commit is contained in:
commit
3c166dda98
@ -5,7 +5,6 @@ import (
|
|||||||
"bbash/command/cd"
|
"bbash/command/cd"
|
||||||
"bbash/command/cp"
|
"bbash/command/cp"
|
||||||
"bbash/command/echo"
|
"bbash/command/echo"
|
||||||
"bbash/command/fritiofcommand"
|
|
||||||
"bbash/command/head"
|
"bbash/command/head"
|
||||||
"bbash/command/help"
|
"bbash/command/help"
|
||||||
"bbash/command/ls"
|
"bbash/command/ls"
|
||||||
@ -15,6 +14,7 @@ import (
|
|||||||
"bbash/command/rm"
|
"bbash/command/rm"
|
||||||
"bbash/command/tail"
|
"bbash/command/tail"
|
||||||
"bbash/command/touch"
|
"bbash/command/touch"
|
||||||
|
"bbash/command/whereareyou"
|
||||||
"bbash/environment"
|
"bbash/environment"
|
||||||
"bbash/input_parser"
|
"bbash/input_parser"
|
||||||
"fmt"
|
"fmt"
|
||||||
@ -38,8 +38,6 @@ func Run_command(in input_parser.Input, env *environment.Env) {
|
|||||||
pwd.Pwd(in, env)
|
pwd.Pwd(in, env)
|
||||||
case "echo":
|
case "echo":
|
||||||
echo.Echo(in, env)
|
echo.Echo(in, env)
|
||||||
case "fritiof", "fritiofcommand":
|
|
||||||
fritiofcommand.Fritiof(in, env)
|
|
||||||
case "ls":
|
case "ls":
|
||||||
ls.Ls(in, env)
|
ls.Ls(in, env)
|
||||||
case "cd":
|
case "cd":
|
||||||
@ -62,6 +60,8 @@ func Run_command(in input_parser.Input, env *environment.Env) {
|
|||||||
help.Help(in, env)
|
help.Help(in, env)
|
||||||
case "tail":
|
case "tail":
|
||||||
tail.Tail(in, env)
|
tail.Tail(in, env)
|
||||||
|
case "whereareyou":
|
||||||
|
whereareyou.Whereareyou(in, env)
|
||||||
default:
|
default:
|
||||||
if !run_by_path(in, env) {
|
if !run_by_path(in, env) {
|
||||||
fmt.Println(fmt.Sprintf("No such command! (%s)", in.Instruction))
|
fmt.Println(fmt.Sprintf("No such command! (%s)", in.Instruction))
|
||||||
|
|||||||
11
command/whereareyou/whereareyou.go
Normal file
11
command/whereareyou/whereareyou.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package whereareyou
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bbash/environment"
|
||||||
|
"bbash/input_parser"
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Whereareyou(in input_parser.Input, env *environment.Env) {
|
||||||
|
fmt.Println("You're in the thick of it everybody knows!")
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user