Skip to content

History persistence from file#72

Open
nathenxbrewer wants to merge 3 commits intotonerdo:masterfrom
nathenxbrewer:history-persistence
Open

History persistence from file#72
nathenxbrewer wants to merge 3 commits intotonerdo:masterfrom
nathenxbrewer:history-persistence

Conversation

@nathenxbrewer
Copy link

Added
• ReadLine.LoadHistory(string filePath)
Loads history from a plain text file, one command per line.
• ReadLine.SaveHistory(string filePath)
Saves the current in-memory history to the specified file.

Improvements
• History entries are only added if HistoryEnabled is true
• Duplicate or empty entries are not added consecutively
• Tests added to validate load/save functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments