fix/enhancement: age-inspect indefinitely hanging and also improvements to usage info and flags for both age-inspect and age-keygen#712
Open
Turmaxx wants to merge 2 commits into
Open
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.
- added `-v` flag - updated usuage information to reflect those changes
Author
|
You probably have to update |
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. but also improves the usage information and version flags a bit for different age CLI binaries.vas an alternative version flag toage-inspectandage-keygen.age-inspect.In relation to age-inspect, the changes I've made 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 } }