From 835abbd1b2411e428d0094160eedb9c18ccd3fb7 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Tue, 27 Mar 2018 17:35:31 +0800 Subject: [PATCH] update README.md --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index e372406..8d398df 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,32 @@ # JWT > This is a simple tool to sign, verify and show JSON Web Tokens ([JWT](http://jwt.io/)) from the command line, base [jwt-go](https://github.com/dgrijalva/jwt-go). + +# Install + +``` +➜ go get -u github.com/ehlxr/jwt +``` + +# Usage + +``` +➜ jwt +JWT(Json Web Token) 工具 +用于生成、验证、查看 JWT + +Usage: + jwt [command] + +Available Commands: + help Help about any command + show 查看 JWT Token + sign JWT 签名 + verify JWT token 验证 + +Flags: + --config string config file (default is $HOME/.jwt.yaml) + -h, --help help for jwt + -v, --version show version of the jwt. + +Use "jwt [command] --help" for more information about a command. +``` \ No newline at end of file