站点更新:2018-03-27 18:22:46

This commit is contained in:
2018-03-27 18:22:46 +08:00
parent 835abbd1b2
commit 5ac2f912c7
4 changed files with 76 additions and 9 deletions

View File

@@ -31,9 +31,10 @@ import (
// showCmd represents the show command
var showCmd = &cobra.Command{
Use: "show",
Short: "查看 JWT Token",
Short: "JWT Token 查看",
Long: `
查看 JWT Token`,
查看 JWT Token 内容
标记 * 号的 flag 为必须项`,
Run: func(cmd *cobra.Command, args []string) {
if err := token.ShowToken(cmd); err != nil {
fmt.Println(err)
@@ -45,5 +46,5 @@ var showCmd = &cobra.Command{
func init() {
rootCmd.AddCommand(showCmd)
showCmd.Flags().StringP("token", "t", "", "path or arg of JWT token to verify, '-' to read from clipboard")
showCmd.Flags().StringP("token", "t", "", "* path or arg of JWT token to verify, '-' to read from clipboard")
}