Chatsh is a demo project that utilizes ChatGPT to execute commands. This tool accepts inputs and submits them to ChatGPT, which will determine the appropriate action to take, except for built-in commands.
To use chatsh, run the following command:
python chatsh.py [--no-prompt]
You can add the optional --no-prompt
flag to execute commands from ChatGPT without prompt. However, please be aware that this feature should be used at your own risk.
Chatsh comes with the following built-in commands:
help
: Displays this messagecd:
Changes the current directoryreset
: Resets ChatGPT and forgets all command historyexit
: Exits the application
To use chatsh, you can replace the API key and Python script path in the provided wrapper script.
Please note that ChatGPT may not always generate the correct command. Therefore, it is important to keep an eye on the suggested commands and verify their accuracy.