aboutsummaryrefslogtreecommitdiff
path: root/cmd/myshell/main.go
diff options
context:
space:
mode:
authorjet2tlf <jet2tlf@gmail.com>2024-05-31 04:45:51 +0000
committerjet2tlf <jet2tlf@gmail.com>2024-05-31 04:45:51 +0000
commit8d059b91e05fbcc67973a84170b35592d5534902 (patch)
tree3fffe574f7a55fa32028a5e13b935e6862728a51 /cmd/myshell/main.go
parentb2e27e73547a2a2bc26f24b5b61592d9582a5098 (diff)
downloadshell-go-8d059b91e05fbcc67973a84170b35592d5534902.tar.gz
shell-go-8d059b91e05fbcc67973a84170b35592d5534902.zip
pass 10st stage
Diffstat (limited to 'cmd/myshell/main.go')
-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