aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/myshell/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go
index 19242e9..5327248 100644
--- a/cmd/myshell/main.go
+++ b/cmd/myshell/main.go
@@ -32,6 +32,8 @@ func main() {
Type(command[1])
case "pwd":
Pwd()
+ case "cd":
+ Cd(command[1])
default:
executable := exec.Command(command[0], command[1:]...)
executable.Stderr = os.Stderr