JosephTLyons / JosephTLyons/termifind-rust
Is it Possible to Rework `print_styled_file_name()` to be `get_styled_file_name()`?
- Dominant language
- Rust
- Stars
- 12
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to have this function return a printable object versus having it do the printing. This function calls a function in the utils that would need to change as well.
If it could be converted into a function that returns the styled object, then it would not need to be called separately from the `get_file_name()` function. After changing `print_styled_file_name()` to `get_styled_file_name()`, it could be made private and called directly by `get_file_name()`. `get_file_name()` would need a new boolean parameter for "should_style_file_name`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.