Skip to content

Commit 9bc8e16

Browse files
committed
[any message]
1 parent ac14fbe commit 9bc8e16

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.idea/git_toolbox_prj.xml

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/main.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ def main():
1111
match command.split():
1212
case ["exit", "0"]:
1313
exit()
14-
case ["echo", *args]:
15-
print(*args)
14+
case ["type", "echo"]:
15+
print("echo is a shell builtin")
16+
case ["type", "exit"]:
17+
print("exit is a shell builtin")
18+
case ["type", "type"]:
19+
print("type is a shell builtin")
20+
case ["type", "invalid_command"]:
21+
print("invalid_command: not found")
1622
case _:
1723
print(f"{command}: command not found")
1824

0 commit comments

Comments
 (0)