-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display full path to each processed file. #14
Conversation
1fae05c
to
b252488
Compare
Displaying full path allows the user to figure out what file is being processed in case an unintended file is being picked up from the specified search paths. Add test for printed path. Add tests to lock down the order in which search paths are processed. Fix utility function name typo. Signed-off-by: Anand Krishnamoorthi <[email protected]>
b252488
to
b80c8f5
Compare
Shouldn't we make this as optional (i.e., a command-line option)? |
I am leaning towards not making it an option. oeedger8r always prints messages 'Generating code for Open Enclave SDK', 'Success' (in case of success). Printing the files being processed will add couple more lines to the output; but I don' think most users would care about these additional lines being printed in case of success. On the other hand, those that run into issues would find these lines useful. |
For the current status, I think it's fine. I'm just thinking for the long-term, if we consider this as a compiler-like tool, I think it makes sense to make this feature as a command-line option (and we may have many more). For example, a compiler-like tool typically provides Regardless this thought, we can merge this PR (which is super useful) and create an issue for tracking the follow-up steps. What do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank! Just have some non-blocking thoughts (see discussion).
Yes, long term it makes sense to add verbose option as oeedger8r evolves with more features. Currently it will just be these messages that would be governed by the option; and thus feels not fully justified. |
Created issue #15 |
Displaying full path allows the user to figure out what file is being processed
in case an unintended file is being picked up from the specified search paths.
Add test for printed path.
Add tests to lock down the order in which search paths are processed.
Signed-off-by: Anand Krishnamoorthi [email protected]