From 889841db487ce2d156f5ccdeb04216db819868da Mon Sep 17 00:00:00 2001 From: Anand prabhakar Date: Wed, 30 Sep 2020 23:31:57 +0530 Subject: [PATCH] Update command.py --- command.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/command.py b/command.py index 734a806..db39354 100644 --- a/command.py +++ b/command.py @@ -1,10 +1,21 @@ import os +import pyttsx3 + os.system("color 0e") + +engine = pyttsx3.init() +engine.say("This is a Modern command line Interface created by Anand Prabhakar") +engine.runAndWait() + print("==========================================================================") print("\n||\tCommand Line Interface CLI 1.0 By Anand Prabhakar,Bihar,India\t||\n||\tPowered by Python. \t\t\t\t\t\t||\n||\tjust learning..no commercial use.. \t\t\t\t||\n") print("==========================================================================") def main(): + engine = pyttsx3.init() + engine.say("Please Enter the command you want to run") + engine.runAndWait() command = input("\n\tEnter the command you want to execute : ") + print("Output after execution : \n") print("============================================================") commanding(command) @@ -15,6 +26,10 @@ def main(): def commanding(i): os.system("color 0a") + engine = pyttsx3.init() + engine.say("You have entered the following command") + engine.say(i) + engine.runAndWait() a = os.system(i) print("\n\t\tDo you want to Enter Command again\n") print("-------------------------------------------------------------")