Implemented the 'question --repeat' command and other improvements #14
Reference in New Issue
Block a user
Delete Branch "repeat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request contains several improvements and fixes to the Chatmastermind project. The main purpose was to implement the
cmm question --repeatcommand, which allows users to repeat the latest question. However, several other changes were made to improve functionality and maintainability.Major changes include:
repeatcommand in thequestion_cmdfunction. This allows for repeating the latest question.make_requestfunction in thequestion.pyfile, which is used to make an AI request and print the response. This increases modularity and allows the same functionality to be used in multiple places.print_cmdfunction, added the functionality to print the latest message if no file is specified.metavarfor arguments in themain.pyfile to provide a better understanding of what each argument represents.__post_init__andequalsmethods in theMessageclass, allowing for better type handling and comparison of messages.3f8cb47a2ato061e4a0d90061e4a0d90toac3c19739d