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

Feature/read from stdin #10

Merged
merged 7 commits into from
Mar 14, 2020
Merged

Feature/read from stdin #10

merged 7 commits into from
Mar 14, 2020

Conversation

lmammino
Copy link
Owner

@lmammino lmammino commented Mar 13, 2020

Allows using - as a token argument to read the value from stdin instead.

Closes #6

Example:

echo "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4geHggRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.ifqduBDRMJbz7BKGEzhWSZw5P_MxNPPrFHovfEob49M" | ./target/release/jwtinfo -
{"sub":"1234567890","name":"John xx Doe","iat":1516239022}

@lmammino lmammino self-assigned this Mar 13, 2020
@lmammino lmammino added the enhancement New feature or request label Mar 13, 2020
@lmammino lmammino merged commit dab2139 into master Mar 14, 2020
@lmammino lmammino deleted the feature/read-from-stdin branch March 14, 2020 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get token from stdin
2 participants