Compare commits

...

3 Commits

Author SHA1 Message Date
Tobias P.L Wennberg
35af0423a7 merge flodman 2025-01-13 17:04:15 +01:00
Tobias P.L Wennberg
3c166dda98 Merge branch 'Flodman' 2025-01-13 17:02:51 +01:00
In_the_Thick_of_It
e6e223b6a7 implemented some brainrot for y'all :):):):):):) 2025-01-13 16:59:09 +01:00
2 changed files with 16 additions and 2 deletions

View File

@ -15,6 +15,7 @@ import (
"bbash/command/rm"
"bbash/command/tail"
"bbash/command/touch"
"bbash/command/whereareyou"
"bbash/environment"
"bbash/input_parser"
"fmt"
@ -34,12 +35,12 @@ func Init(env *environment.Env) {
func Run_command(in input_parser.Input, env *environment.Env) {
switch in.Instruction {
case "fritiofcommand":
fritiofcommand.Fritiof(in, env)
case "pwd":
pwd.Pwd(in, env)
case "echo":
echo.Echo(in, env)
case "fritiof", "fritiofcommand":
fritiofcommand.Fritiof(in, env)
case "ls":
ls.Ls(in, env)
case "cd":
@ -62,6 +63,8 @@ func Run_command(in input_parser.Input, env *environment.Env) {
help.Help(in, env)
case "tail":
tail.Tail(in, env)
case "whereareyou":
whereareyou.Whereareyou(in, env)
default:
if !run_by_path(in, env) {
fmt.Println(fmt.Sprintf("No such command! (%s)", in.Instruction))

View 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!")
}