Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Feat [Golang] [Package] Interactivity #27

Merged
merged 4 commits into from
Dec 10, 2023
Merged

Feat [Golang] [Package] Interactivity #27

merged 4 commits into from
Dec 10, 2023

Conversation

H0llyW00dzZ
Copy link
Owner

No description provided.

- [+] feat(interactivity): add interactivity package for handling interactive command-line user interfaces
- [+] feat(interactivity): add ConfirmOverwrite function for checking if a file exists and prompting the user for confirmation to overwrite
- [+] feat(interactivity): add promptForInput function for reading user input from bufio.Reader and handling cancellation with context
- [+] feat(file_system.go): add error handling to FileExists method in the FileSystem interface
- [+] fix(file_system.go): change return type of FileExists method in the FileSystem interface to (bool, error)
- [+] fix(file_system.go): handle file existence check in the FileExists method of RealFileSystem
- [+] fix(file_system_mock.go): change return type of FileExists method in the MockFileSystem to (bool, error)
- [+] fix(file_system_mock.go): handle file existence check in the FileExists method of MockFileSystem
- [+] feat(interactivity.go): add determineFileName function to determine the file name based on the fileType
- [+] fix(main.go): change variable name from fs to rfs in processCSVOption, processDatasetOption, executeCSVConversion, createSeparateCSVFiles, convertToSingleCSV, and writeContentToFile functions
- [+] feat(main.go): add import statement for interactivity package
Copy link

CodeQL analysis is complete for PR #27

@H0llyW00dzZ H0llyW00dzZ merged commit 351654e into master Dec 10, 2023
8 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the interactivity branch December 10, 2023 04:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant