roysh 0.1__py3-none-any.whl → 0.1.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- roysh/shell.py +9 -0
- {roysh-0.1.dist-info → roysh-0.1.1.dist-info}/METADATA +2 -3
- roysh-0.1.1.dist-info/RECORD +7 -0
- {roysh-0.1.dist-info → roysh-0.1.1.dist-info}/WHEEL +1 -1
- roysh-0.1.dist-info/RECORD +0 -7
- {roysh-0.1.dist-info → roysh-0.1.1.dist-info}/entry_points.txt +0 -0
- {roysh-0.1.dist-info → roysh-0.1.1.dist-info}/top_level.txt +0 -0
roysh/shell.py
CHANGED
@@ -2,6 +2,7 @@ import sys
|
|
2
2
|
import os
|
3
3
|
import subprocess
|
4
4
|
import shlex
|
5
|
+
from datetime import datetime
|
5
6
|
|
6
7
|
# Handle readline import for different platforms
|
7
8
|
try:
|
@@ -224,6 +225,14 @@ def main():
|
|
224
225
|
print(f"cd: {target_dir}: Permission denied")
|
225
226
|
elif cmd == "echo":
|
226
227
|
print(" ".join(args[1:]))
|
228
|
+
elif cmd == "madam":
|
229
|
+
today = datetime.now()
|
230
|
+
if today.month == 2 and today.day == 14:
|
231
|
+
print("Happy Valentine's Day")
|
232
|
+
elif today.month == 4 and today.day == 3:
|
233
|
+
print("Happy Birthday Madam")
|
234
|
+
else:
|
235
|
+
print("No special celebration today.")
|
227
236
|
else:
|
228
237
|
found = False
|
229
238
|
extensions = ['.exe', '.bat', '.cmd', ''] if os.name == 'nt' else ['']
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: roysh
|
3
|
-
Version: 0.1
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: A Python-based shell with tab completion
|
5
5
|
Home-page: https://github.com/nishanroy561/RoySH
|
6
6
|
Author: Nishan Roy
|
@@ -99,5 +99,4 @@ Contributions are welcome! Please feel free to submit a Pull Request.
|
|
99
99
|
This project is licensed under the MIT License - see the LICENSE file for details.
|
100
100
|
|
101
101
|
---
|
102
|
-
Developed by Nishan Roy
|
103
|
-
```
|
102
|
+
Developed by Nishan Roy```
|
@@ -0,0 +1,7 @@
|
|
1
|
+
roysh/__init__.py,sha256=8YND5SC_fWqv0C_bZCp0c56HU-wQCUlI1xzBY7fWHq4,49
|
2
|
+
roysh/shell.py,sha256=HRGFt6pxl9nDEgWhJrW5W1JgBCMB8Zwm1q29bG3Kw9g,11107
|
3
|
+
roysh-0.1.1.dist-info/METADATA,sha256=sDKk1poRC7u9LWL-BjorNMRGW9QBABjsX8A5j5es7VM,2306
|
4
|
+
roysh-0.1.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
5
|
+
roysh-0.1.1.dist-info/entry_points.txt,sha256=ujz21BagQ6boNinTjOmAxCypk9ShJJW6NimV0Ukh9IY,37
|
6
|
+
roysh-0.1.1.dist-info/top_level.txt,sha256=g9yff3iyVU5f3JdBFdMYcIcKLRPL7iMCukSbrGmdA3A,6
|
7
|
+
roysh-0.1.1.dist-info/RECORD,,
|
roysh-0.1.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
roysh/__init__.py,sha256=8YND5SC_fWqv0C_bZCp0c56HU-wQCUlI1xzBY7fWHq4,49
|
2
|
-
roysh/shell.py,sha256=6MxZBS0PJvN5wxxtgb8gLr8RmDrDmtHwZ_y1qqVzYtU,10667
|
3
|
-
roysh-0.1.dist-info/METADATA,sha256=JwEVOef1tke0J56Vx7zJwSrmXwxkTdQBLmWJLaZAmGk,2306
|
4
|
-
roysh-0.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
5
|
-
roysh-0.1.dist-info/entry_points.txt,sha256=ujz21BagQ6boNinTjOmAxCypk9ShJJW6NimV0Ukh9IY,37
|
6
|
-
roysh-0.1.dist-info/top_level.txt,sha256=g9yff3iyVU5f3JdBFdMYcIcKLRPL7iMCukSbrGmdA3A,6
|
7
|
-
roysh-0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|