From fe02eb64884a383004d3833672ac68159a03f023 Mon Sep 17 00:00:00 2001 From: voidthelynx Date: Sat, 22 Jun 2024 18:59:38 +0200 Subject: [PATCH] =?UTF-8?q?erstes=20hinzuf=C3=BCgen=20von=20datei?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manual-commands-test.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 manual-commands-test.py diff --git a/manual-commands-test.py b/manual-commands-test.py new file mode 100644 index 0000000..6380d8b --- /dev/null +++ b/manual-commands-test.py @@ -0,0 +1,32 @@ +#22.06.2024 +#planned improvements: +#use functions to clean up the code for the specific functions +# use a dictionary to map the commands to the functions + +command = None + +available_commands = ["- 'note' for creating a note", "- 'task' for creating a note", "- 'exit' for exiting the application"] + +while command is None: + command = input("Enter a command (type 'help' for avilable commands): ") + lowered_input = command.lower() + print("Command is: " + lowered_input) + + if lowered_input == 'hilfe': + print ("You entered " + lowered_input) + command = None + if lowered_input == 'note': + note_text = input("Enter Text for Note: ") + + if lowered_input == 'note help': + print("After this command you're able to put in a text. If you submit the text it gets converted into a Note in Google Keep") + + if lowered_input == 'help': + print("These commands are available") + print("If you want to know what each command is capable of type 'examplecommand help'") + for x in available_commands: + print(x) + + if lowered_input == 'exit': + break + command = None \ No newline at end of file