package man import ( "bbash/environment" "bbash/input_parser" "fmt" ) func Man(in input_parser.Input, env *environment.Env) { switch in.Instruction { case "pwd": fmt.Print("Output current working directory") case "echo": fmt.Print("Echoes the input argument") case "ls": fmt.Print("List Sources in the current working directory") case "cd": fmt.Print("Change to directory given in the argument") case "man": fmt.Print("Manual for the terminal options") case "cat": fmt.Print("Outputs the contents of the given file") case "head": fmt.Print("Outputs first lines of a given file. 10 if non provided. Argument ") case "touch": fmt.Print("Creates the given file") case "rm": fmt.Print("Removes the given file") case "cp": fmt.Print("Copies the given file. Argument: ") case "mv": fmt.Print("Moves a given file. Argument: ") default: fmt.Println(fmt.Sprintf("No such command! (%s)", in.Instruction)) } }