fix: age-inspect indefinitely hanging and also improves usage info and flags#712
Open
Turmaxx wants to merge 1 commit into
Open
fix: age-inspect indefinitely hanging and also improves usage info and flags#712Turmaxx wants to merge 1 commit into
Turmaxx wants to merge 1 commit into
Conversation
- added `-v` flag - updated usage information / help message - added `else` logic to fix age-inspect hanging when invoked seperately, it prints the usage information, when invoked with an age files it inspects it and also when pipes it inspects it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR mainly fixes an issue where
age-inspectwould hang indefinitely, when invoked alone without arguments or a piped input.This wont affect previous behavior.
Click to expand output
Click to expand output
Click to expand output
{ "version": "age-encryption.org/v1", "postquantum": "yes", "armor": true, "stanza_types": [ "scrypt" ], "sizes": { "header": 150, "armor": 1481, "overhead": 32, "min_payload": 3805, "max_payload": 3805, "min_padding": 0, "max_padding": 0 } }$ cat test.age | age-inspectClick to expand output
$ cat test.age | age-inspect --jsonClick to expand output
{ "version": "age-encryption.org/v1", "postquantum": "yes", "armor": true, "stanza_types": [ "scrypt" ], "sizes": { "header": 150, "armor": 1481, "overhead": 32, "min_payload": 3805, "max_payload": 3805, "min_padding": 0, "max_padding": 0 } }This PR also improves the usage information and version flags a bit.
vas an alternative version flag.