Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 650aab5

Browse files
committed
build-ready
1 parent c2af13b commit 650aab5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

ffmpegShell.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class ffmpegShell:
2727

2828
# Setting up requiered variables
2929
def __init__(self):
30+
self.ffs_ver = '0.1'
3031
self.running = False
3132
self.current_path = os.getcwd()
3233
self.ffmpeg_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '.ffscore', 'ffmpeg', 'bin', 'ffmpeg.exe')
@@ -172,10 +173,12 @@ def handle_regular_command(self, user_input):
172173
self.tree()
173174
elif command == 'exit':
174175
self.exit()
175-
elif command == 'cat':
176-
self.cat(user_input)
176+
elif command == 'info':
177+
self.show_info()
177178
elif command == 'cmd':
178179
self.cmd(user_input)
180+
elif command == 'cat':
181+
self.cat(user_input)
179182
elif command == 'pause':
180183
self.pause(user_input)
181184
elif command == 'restart':
@@ -218,6 +221,8 @@ def execute_command(self, cmd):
218221
self.tree()
219222
elif command == 'exit':
220223
self.exit()
224+
elif command == 'info':
225+
self.show_info()
221226
elif command == 'pause':
222227
self.pause(cmd)
223228
elif command == 'prompt':
@@ -479,6 +484,10 @@ def display_help(self):
479484
print(Fore.CYAN + " tree\t\t\t\t\t\t" + Fore.RESET + "- Display directory structure")
480485
print(Fore.CYAN + " pwd\t\t\t\t\t\t\t" + Fore.RESET + "- Print current working directory")
481486

487+
# info command
488+
def show_info(self):
489+
print(Fore.GREEN + "ffmpegShell.py " + Fore.RESET + "| " + Fore.CYAN + f"Version: win-{self.ffs_ver}")
490+
482491
# cd handler
483492
def cd_handler(self, user_input):
484493
if len(user_input.split()) == 1:

0 commit comments

Comments
 (0)