commit fe02eb64884a383004d3833672ac68159a03f023 Author: voidthelynx Date: Sat Jun 22 18:59:38 2024 +0200 erstes hinzufügen von datei 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