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

Refactored how firecore tools handles printing #69

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

Conversation

maoueh
Copy link
Contributor

@maoueh maoueh commented Dec 9, 2024

There is now a common flag for all tools subcommand output that can be one of: text, json, jsonl, protojson or protojsonl.

Commands that had flags defined have been removed, this should be backward compatible.

The text printer is now more clever and is able to print details about most blocks.

There is now a common flag for all `tools` subcommand `output` that can be one of: text, json, jsonl, protojson or protojsonl.

Commands that had flags defined have been removed, this should be backward compatible.

The text printer is now more clever and is able to print details about most blocks.
if err != nil {
fmt.Printf("❌ Unable to print block %s: %s\n", block.AsRef(), err)
continue
}
}

if printDetails == PrintFull {
printer, err := print2.GetOutputPrinter(globalToolsCheckCmd, chain.BlockFileDescriptor())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I plan to remove all printing support from check.

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.

1 participant