Skip to content

Conversation

@RAJVEER42
Copy link
Contributor

🔧 REPL Exit Command Enhancement

✅ Description:
This update improves the user experience in the REPL (Read-Eval-Print Loop) interface by supporting both exit and quit commands to terminate the session.

Previously, only quit was recognized. This enhancement aligns the REPL behavior with standard terminal/shell and Python REPL conventions, making it more intuitive and user-friendly.

✨ Changes Made:
Added support for exit as a valid command to end the REPL session.

Maintained existing support for quit.

Ensured backward compatibility.

Added a helpful inline comment for maintainability.

🧪 Testing:
Manually tested the REPL session with:

exit → clean termination.

quit → clean termination.

Random input → no premature exit.

📌 Notes:
No regressions or crashes observed.

Behavior matches common shell UX.

- Start or end your input with '?' to ask a question.
- Tab completion for files and folders is enabled.
- Use 'Ctrl + c' or type 'quit' or 'exit' to quit the assistant.
-Use 'Ctrl + c' or type 'quit' or 'exit' to quit and exit the assistant.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 'Ctrl + c' or type 'quit' or 'exit' to quit and exit the assistant. Please change the 'and' to 'or'.

Copy link
Contributor Author

@RAJVEER42 RAJVEER42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Kirti-Rathi,
Please review and merge only this pull request (#30, commit 41f8386). Kindly ignore all other open PRs for now. Thank you!

Copy link
Owner

@Kirti-Rathi Kirti-Rathi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work!

@Kirti-Rathi Kirti-Rathi merged commit 50e3fb7 into Kirti-Rathi:main Jun 14, 2025
@RAJVEER42
Copy link
Contributor Author

@Kirti-Rathi Thank you for the kind remarks! It was a great experience working on these issues, especially as a fresher. I learned a lot and truly enjoyed contributing to the project.

@RAJVEER42 RAJVEER42 deleted the feature/support-exit-quit-command branch June 22, 2025 10:01
@Kirti-Rathi Kirti-Rathi added Beginner Simple tasks ideal for first-time contributors. SSoC25 Part of Social Summer of Code 2025. Tag for recognition. labels Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Beginner Simple tasks ideal for first-time contributors. SSoC25 Part of Social Summer of Code 2025. Tag for recognition.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants