mirror of
https://github.com/samsonjs/csc360-a1-shell.git
synced 2026-03-25 08:45:52 +00:00
[ruby] Implement clear and actually use builtin pwd instead of /bin/pwd
This commit is contained in:
parent
5bb03eb2a2
commit
58f1e48cd2
1 changed files with 6 additions and 1 deletions
|
|
@ -66,9 +66,14 @@ module Shell
|
|||
0
|
||||
end
|
||||
|
||||
def bulitin_pwd(_args)
|
||||
def builtin_pwd(_args)
|
||||
puts Dir.pwd
|
||||
0
|
||||
end
|
||||
|
||||
def builtin_clear(_args)
|
||||
print "\033[2J"
|
||||
0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue