Skip to content

Commit

Permalink
Merge pull request #44 from axone-protocol/fix/cmd-arg
Browse files Browse the repository at this point in the history
fix(cli): properly map cli argument
  • Loading branch information
amimart authored Sep 19, 2024
2 parents d01542e + a6799c0 commit bc40c02
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ make build

## Example

> ⚠️ **The following example mey be outdated**.
> ⚠️ **The following example may be outdated**.
Hereafter is presented an example using this proxy locally, providing all the needed elements to feed a local dataverse and interact with it.

Expand Down
2 changes: 1 addition & 1 deletion cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func init() {
"Encryption with the GRPC endpoint but skip certificates verification")
startCmd.PersistentFlags().StringVar(&dataverseAddr, FlagDataverseAddr, "", "The dataverse contract address")
startCmd.PersistentFlags().StringVar(&mnemonic, FlagServiceMnemonic, "", "The service's mnemonic")
startCmd.PersistentFlags().StringVar(&mnemonic, FlagServiceBaseURL, "", "The service's base URL")
startCmd.PersistentFlags().StringVar(&baseURL, FlagServiceBaseURL, "", "The service's base URL")
startCmd.PersistentFlags().StringVar(&listenAddr, FlagListenAddr, "127.0.0.1:8080", "The server's listen address")
startCmd.PersistentFlags().BytesHexVar(&jwtSecretKey, FlagJWTSecretKey, []byte{}, "The hex encoded secret key used to issue JWT tokens")
startCmd.PersistentFlags().DurationVar(&jwtDuration, FlagJWTDuration, time.Hour, "The JWT token duration")
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/axone-protocol/s3-auth-proxy
go 1.22.5

require (
github.com/axone-protocol/axone-sdk v0.0.0-20240917124429-be90ef100e39
github.com/axone-protocol/axone-sdk v0.0.0-20240919114012-5a4ba90c03e8
github.com/minio/minio-go/v7 v7.0.69
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f
github.com/rs/zerolog v1.33.0
Expand All @@ -25,7 +25,7 @@ require (
cosmossdk.io/log v1.4.1 // indirect
cosmossdk.io/math v1.3.0 // indirect
cosmossdk.io/store v1.1.0 // indirect
cosmossdk.io/x/tx v0.13.4 // indirect
cosmossdk.io/x/tx v0.13.5 // indirect
cosmossdk.io/x/upgrade v0.1.4 // indirect
filippo.io/edwards25519 v1.0.0 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
Expand All @@ -38,7 +38,7 @@ require (
github.com/axone-protocol/axone-contract-schema/go/cognitarium-schema/v5 v5.0.0-20240826124342-6e6abdf73c9a // indirect
github.com/axone-protocol/axone-contract-schema/go/dataverse-schema/v5 v5.0.0-20240826124342-6e6abdf73c9a // indirect
github.com/axone-protocol/axone-contract-schema/go/law-stone-schema/v5 v5.0.0-20240829161824-0ad316c6fda9 // indirect
github.com/axone-protocol/axoned/v9 v9.0.0 // indirect
github.com/axone-protocol/axoned/v10 v10.0.0 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ cosmossdk.io/x/evidence v0.1.1 h1:Ks+BLTa3uftFpElLTDp9L76t2b58htjVbSZ86aoK/E4=
cosmossdk.io/x/evidence v0.1.1/go.mod h1:OoDsWlbtuyqS70LY51aX8FBTvguQqvFrt78qL7UzeNc=
cosmossdk.io/x/feegrant v0.1.1 h1:EKFWOeo/pup0yF0svDisWWKAA9Zags6Zd0P3nRvVvw8=
cosmossdk.io/x/feegrant v0.1.1/go.mod h1:2GjVVxX6G2fta8LWj7pC/ytHjryA6MHAJroBWHFNiEQ=
cosmossdk.io/x/tx v0.13.4 h1:Eg0PbJgeO0gM8p5wx6xa0fKR7hIV6+8lC56UrsvSo0Y=
cosmossdk.io/x/tx v0.13.4/go.mod h1:BkFqrnGGgW50Y6cwTy+JvgAhiffbGEKW6KF9ufcDpvk=
cosmossdk.io/x/tx v0.13.5 h1:FdnU+MdmFWn1pTsbfU0OCf2u6mJ8cqc1H4OMG418MLw=
cosmossdk.io/x/tx v0.13.5/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w=
cosmossdk.io/x/upgrade v0.1.4 h1:/BWJim24QHoXde8Bc64/2BSEB6W4eTydq0X/2f8+g38=
cosmossdk.io/x/upgrade v0.1.4/go.mod h1:9v0Aj+fs97O+Ztw+tG3/tp5JSlrmT7IcFhAebQHmOPo=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
Expand Down Expand Up @@ -95,10 +95,10 @@ github.com/axone-protocol/axone-contract-schema/go/dataverse-schema/v5 v5.0.0-20
github.com/axone-protocol/axone-contract-schema/go/dataverse-schema/v5 v5.0.0-20240826124342-6e6abdf73c9a/go.mod h1:ztbeFSQhlyxmoBMdCDXT3k9I8VswfCeq3F8TVrxpPVg=
github.com/axone-protocol/axone-contract-schema/go/law-stone-schema/v5 v5.0.0-20240829161824-0ad316c6fda9 h1:i5TEHxnkprtp3uOz4nXokxWzGxjLEKYJmRfKsQ6HYzY=
github.com/axone-protocol/axone-contract-schema/go/law-stone-schema/v5 v5.0.0-20240829161824-0ad316c6fda9/go.mod h1:en5YIi2VcOYS8vkUGB6HzAUfTk3miolwnzm+Qs9FtfM=
github.com/axone-protocol/axone-sdk v0.0.0-20240917124429-be90ef100e39 h1:lZJheDS1oeL53XCAPKmy6QV55mJAu1KEPUhXoofRETY=
github.com/axone-protocol/axone-sdk v0.0.0-20240917124429-be90ef100e39/go.mod h1:WAi+rTiQtfhErc1IeglJOrEr268OJ1Xkuc+zMKOFyD8=
github.com/axone-protocol/axoned/v9 v9.0.0 h1:tED2oKxf9KF4S8hbpDuUJL/91pEoYrV1femALJovRmY=
github.com/axone-protocol/axoned/v9 v9.0.0/go.mod h1:9RDsnrYBqXPQPOMFTWiTFULImclBrvUL1U89PUAimHA=
github.com/axone-protocol/axone-sdk v0.0.0-20240919114012-5a4ba90c03e8 h1:GkfXfnvBOGJMDRtx4aPKUecpc4FX2ktduemw1L2EDO4=
github.com/axone-protocol/axone-sdk v0.0.0-20240919114012-5a4ba90c03e8/go.mod h1:G0vv1eEJE/9VGJW7olYm8DGyl/Ls1EpmXHv39b+LtYY=
github.com/axone-protocol/axoned/v10 v10.0.0 h1:ck3IiVkldhuXTyIK17Q83P9tgbhYkood7qUF9/+yWLg=
github.com/axone-protocol/axoned/v10 v10.0.0/go.mod h1:RFL9hutVTROqqiQxp/4Z7OrghQ7JvZ9ykissftQGLKM=
github.com/axone-protocol/prolog v1.0.0 h1:CASA1QrPOWhYox8YUStML33rekoA/7Gnp/ldDPZqCTA=
github.com/axone-protocol/prolog v1.0.0/go.mod h1:lbZPekEi6qr5WX29GgEmhZlTxUkeWeiJ8cZZRq8qjAE=
github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk=
Expand Down

0 comments on commit bc40c02

Please sign in to comment.