roysh 0.1__tar.gz → 0.1.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {roysh-0.1 → roysh-0.1.2}/PKG-INFO +2 -3
- {roysh-0.1 → roysh-0.1.2}/README.md +1 -2
- {roysh-0.1 → roysh-0.1.2}/roysh/shell.py +11 -0
- {roysh-0.1 → roysh-0.1.2}/roysh.egg-info/PKG-INFO +2 -3
- {roysh-0.1 → roysh-0.1.2}/setup.py +1 -1
- {roysh-0.1 → roysh-0.1.2}/roysh/__init__.py +0 -0
- {roysh-0.1 → roysh-0.1.2}/roysh.egg-info/SOURCES.txt +0 -0
- {roysh-0.1 → roysh-0.1.2}/roysh.egg-info/dependency_links.txt +0 -0
- {roysh-0.1 → roysh-0.1.2}/roysh.egg-info/entry_points.txt +0 -0
- {roysh-0.1 → roysh-0.1.2}/roysh.egg-info/requires.txt +0 -0
- {roysh-0.1 → roysh-0.1.2}/roysh.egg-info/top_level.txt +0 -0
- {roysh-0.1 → roysh-0.1.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: roysh
|
3
|
-
Version: 0.1
|
3
|
+
Version: 0.1.2
|
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```
|
@@ -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,16 @@ 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 == 2 and today.day == 15:
|
233
|
+
print("Happy late Valentine's Day")
|
234
|
+
elif today.month == 4 and today.day == 3:
|
235
|
+
print("Happy Birthday Madam")
|
236
|
+
else:
|
237
|
+
print(f"{cmd}: not found")
|
227
238
|
else:
|
228
239
|
found = False
|
229
240
|
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.2
|
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```
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|