JosephTLyons / JosephTLyons/termifind-rust

Is it Possible to Rework `print_styled_file_name()` to be `get_styled_file_name()`?

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
questionable
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.