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

Add support for silencing CTRTool output #118

Merged
merged 15 commits into from
Apr 15, 2022
Merged

Conversation

jakcron
Copy link
Collaborator

@jakcron jakcron commented Apr 12, 2022

About

This addresses issue #113 where @vulcandth rightly points out that CTRTool has no command to silence output for use in scripting.

Changes

  • Bump version to v1.1.0
  • Add CLI option -q/--quiet which enables silent mode.
  • When displaying ExHeader fields, Access info was renamed to FS access.
  • CTRTool now distingushes between three types of output:
    • General output (information about a file)
      • These are printed to stdout.
      • These are the only output silenced in silent mode.
    • Warnings & Progress Indicators
      • These are printed to stderr.
      • This information is only shown in verbose mode.
      • These are prefixed in output with a tag [ctrtool::ClassNameHere LOG] ...
      • Progress indicators include output like Extracting X to Y...
    • Errors
      • These are printed to stderr.
      • These will always be shown.
      • These are prefixed in output with a tag [ctrtool::ClassNameHere ERROR] ...
      • Note verification errors are only shown in verify mode.
        • Errors with IVFC blocks will invalidate the whole IVFC layer, which is displayed as one error. To display where each block is invalid use verbose output mode.
        • Errors with ExtendedHeader FsAccess bits invalidate the whole bit-field, which is displayed as one error. To display where each bit is invalid use verbose output mode.
        • Errors with ExtendedHeader ServiceAccess entries invalidate the whole set, which is displayed as one error. To display where each entry is invalid use verbose output mode.

@jakcron jakcron changed the title Add support for silencing output Add support for silencing CTRTool output Apr 12, 2022
This was referenced Apr 12, 2022
@jakcron jakcron merged commit 8a9f9bd into master Apr 15, 2022
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