Skip to content
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

Consolidate CLI output functions #621

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tristan957
Copy link
Collaborator

It seemed like every tool defined its own syntax() and/or fatal(). By making a single a definition for each in libhse-cli, we can cut down all the redefinitions.

This also has the added benefit of reducing the number of tools needing tools/common.c. Less compilation. Yay!

@tristan957
Copy link
Collaborator Author

Not in love with output.h, so if someone has a better name I am all for it!

@tristan957
Copy link
Collaborator Author

A rare PR where I remove lines of code...

cli/lib/output.c Fixed Show fixed Hide fixed
cli/lib/output.c Fixed Show fixed Hide fixed
It seemed like every tool defined its own `syntax()` and/or `fatal()`.
By making a single a definition for each in libhse-cli, we can cut down
all the redefinitions.

This also has the added benefit of reducing the number of tools needing
tools/common.c. Less compilation. Yay!

Signed-off-by: Tristan Partin <[email protected]>
@alexttx
Copy link
Contributor

alexttx commented Feb 17, 2023

Last PR. No Mas.

Changing my mind. Rejecting this PR. This RC is baked. Can't change 45 files hours before QA kicks off a round of tests.

@tristan957
Copy link
Collaborator Author

Don't really care if it makes it into the rc. Just posting it to be merged eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants