This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
Add public key address export subcommand #888
Merged
NicolasMassart
merged 6 commits into
PegaSysEng:master
from
NicolasMassart:feature/PAN-2273_pub_key_to_addr
Feb 21, 2019
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7d98ea8
Added public key address export subcommand
NicolasMassart f57ea3a
Add doc
NicolasMassart db73dce
made the file output optional and write to standard output by default
NicolasMassart e5863ae
Merge branch 'master' into feature/PAN-2273_pub_key_to_addr
NicolasMassart 60861a4
Merge branch 'master' into feature/PAN-2273_pub_key_to_addr
NicolasMassart baec580
Merge branch 'master' into feature/PAN-2273_pub_key_to_addr
NicolasMassart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: by default, print to stdout. That's pretty standard syntax for something like this. Let the user choose to add the file option if they want. I suspect a valuable use case is scripting (eg startup script) where user would rather grab from stdout (and run through grep if necessary). Dealing with files can be a PITA, depending on installation (permissions, stale file, stale file that doesn't get updated and thus user gets broken value)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but doesn't work as we output all logs to standard out. Files are way more easy to use just a cat and you got the content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment in --to, if we make it optional we can default to std out. Do we have any CLI guidelines on positional parameters? That would be another option. Another option is to add another flag like --to-console and require one of those two flags.
However I think there should be some way to get it to output to console. The ease of use and default setting I am flexible on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree on making the --to file optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--to is now optional. I also made the change on the other one. It's retro-compatible with the previous way to use the commands.