roysh 0.1__py3-none-any.whl → 0.1.2__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
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,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```
@@ -0,0 +1,7 @@
1
+ roysh/__init__.py,sha256=8YND5SC_fWqv0C_bZCp0c56HU-wQCUlI1xzBY7fWHq4,49
2
+ roysh/shell.py,sha256=17T_YcWfP1iY6xxHR0N1pMDe0JHpdXL8pRXZ7jVRlxk,11220
3
+ roysh-0.1.2.dist-info/METADATA,sha256=cDB2aiRcijd5YXwVSD8V1G7oXd8JNB3BOeAbe15jHAo,2306
4
+ roysh-0.1.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
5
+ roysh-0.1.2.dist-info/entry_points.txt,sha256=ujz21BagQ6boNinTjOmAxCypk9ShJJW6NimV0Ukh9IY,37
6
+ roysh-0.1.2.dist-info/top_level.txt,sha256=g9yff3iyVU5f3JdBFdMYcIcKLRPL7iMCukSbrGmdA3A,6
7
+ roysh-0.1.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -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,,