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.
@@ -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```
@@ -82,5 +82,4 @@ Contributions are welcome! Please feel free to submit a Pull Request.
82
82
  This project is licensed under the MIT License - see the LICENSE file for details.
83
83
 
84
84
  ---
85
- Developed by Nishan Roy
86
- ```
85
+ 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```
@@ -14,7 +14,7 @@ else:
14
14
 
15
15
  setup(
16
16
  name="roysh",
17
- version="0.1",
17
+ version="0.1.2",
18
18
  packages=find_packages(),
19
19
  entry_points={
20
20
  'console_scripts': [
File without changes
File without changes
File without changes
File without changes
File without changes