Skip to content

Consolidate CLI output functions#621

Open
tristan957 wants to merge 1 commit intomasterfrom
tristan957/cli
Open

Consolidate CLI output functions#621
tristan957 wants to merge 1 commit intomasterfrom
tristan957/cli

Conversation

@tristan957
Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

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

@tristan957
Copy link
Copy Markdown
Member Author

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

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 <tpartin@micron.com>
@alexttx
Copy link
Copy Markdown
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
Copy Markdown
Member 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.

3 participants