summaryrefslogtreecommitdiff
path: root/src/util.rs
AgeCommit message (Collapse)Author
2021-08-02Bump packagesNick Gerace
2021-05-25Remove logging from libraryNick Gerace
2021-05-23Bold table headers instead of repo namesNick Gerace
2021-05-16Remove middleware run function in libraryNick Gerace
2021-05-15Move application-esque behavior out of the libraryNick Gerace
2021-05-15Consolidate gfld into gfoldNick Gerace
2021-03-29Add gfldNick
Add gfld. Consult CHANGELOG.md for more information.
2021-02-15Add display email featureNick Gerace
Add display email feature. Remove prettytable macros. Add shorthand flag for all features without one. Log error during recursively opening sub directories.
2021-02-10Add standard dirs and remove hidden dirsNick Gerace
Add standard directory inclusion via CLI flag. Remove hidden directory walking to increase speed.
2021-01-27Remove file header commentsNick Gerace
2021-01-26Switch disable unpushed check to enableNick Gerace
Switch disable unpushed check to enable. Change macOS to darwin where possible.
2020-12-15Add disable unpushed commit checkNick Gerace
Add disable unpushed commit check to give users a choice. The unpushed function currently does not account for every case, so having the flag is a temporary solution that may also provide useful in its own right.
2020-12-14Add back unpush functionalityNick Gerace
Add back unpush functionality, which now returns a boolean only and logs errors found. Remove empty results message since it was potentially misleading. For instance, errors may occur silently even though the message to STDOUT always claims that there are no results to display.
2020-12-01Remove unpush functionalityNick Gerace
Remove unpush functionality since it does not account for all cases. Add debug flag. Revert bare repository checking back to old behavior.
2020-11-29Add condition enum to utilNick Gerace
Add condition enum to util. This separates row creation from results generation logic.
2020-11-26Refactor library into driver and util filesNick Gerace
Refactor library into driver and util files. This library layout helps organize the gfold API.
2020-10-10Refactor source code to be driven by a libraryNick Gerace
Refactor source code to be driven by a library, helmed by lib.rs. Use main.rs as minimally as possible. The refactor is based on the knowledge accrued from re-reading the Rust programming language book. Change cosmetic espects of the README. Consolidate pre-build Makefile targets. Add gfold-bin to AUR portion of README.
2020-09-02Add recursive search feature, and skip sort featureNick Gerace
Add recursive search feature, and add skip sort feature (reliant on the former). Add unit tests for both features. Add AUR PKGBUILD GitHub repository to the README. Add Results and TableWrapper structs, along will all relevant methods and fucntions. Add Make targets for installing locally, and testing the recursive feature. Switch to object-driven harness, rather than a large parent function. Move "walk_dir" logic to a Results method. Use "expect" instead of unnecessary match blocks. Remove leftover FIXME comments for recursive search ideas. There is a lot of potential for optimization here, but this is the first pass.