mirror of
https://github.com/darmiel/yaxc.git
synced 2025-09-05 05:54:50 +08:00
Implemented JWT Gen Command
This commit is contained in:
parent
4f5768224e
commit
7f7de954e2
3 changed files with 6 additions and 0 deletions
|
@ -89,6 +89,10 @@ func regIntP(cmd *cobra.Command, name, shorthand string, def int, usage string)
|
|||
cmd.PersistentFlags().IntP(name, shorthand, def, usage)
|
||||
cobra.CheckErr(viper.BindPFlag(name, cmd.PersistentFlags().Lookup(name)))
|
||||
}
|
||||
func regInt64P(cmd *cobra.Command, name, shorthand string, def int64, usage string) {
|
||||
cmd.PersistentFlags().Int64P(name, shorthand, def, usage)
|
||||
cobra.CheckErr(viper.BindPFlag(name, cmd.PersistentFlags().Lookup(name)))
|
||||
}
|
||||
func regInt(cmd *cobra.Command, name string, def int, usage string) {
|
||||
cmd.PersistentFlags().Int(name, def, usage)
|
||||
cobra.CheckErr(viper.BindPFlag(name, cmd.PersistentFlags().Lookup(name)))
|
||||
|
|
1
go.mod
1
go.mod
|
@ -4,6 +4,7 @@ go 1.16
|
|||
|
||||
require (
|
||||
github.com/atotto/clipboard v0.1.4
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
|
||||
github.com/go-redis/redis/v8 v8.8.0
|
||||
github.com/gofiber/fiber/v2 v2.6.0
|
||||
github.com/imroc/req v0.3.0
|
||||
|
|
1
go.sum
1
go.sum
|
@ -41,6 +41,7 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsr
|
|||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
|
||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
|
||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
|
||||
|
|
Loading…
Add table
Reference in a new issue