Skip to content

Commit

Permalink
feat: add search mode in kysor
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Mar 5, 2024
1 parent b68b9cb commit ce899a1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
11 changes: 6 additions & 5 deletions tools/kysor/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,11 +679,12 @@ func validateVersionOrEmpty(s string) error {

var (
flagStartValaccount = commoncmd.OptionFlag[config.ValaccountConfig]{
Name: "valaccount",
Short: "v",
Usage: "Name of the valaccount to run",
Required: true,
MaxSelectionSize: 10,
Name: "valaccount",
Short: "v",
Usage: "Name of the valaccount to run",
Required: true,
MaxSelectionSize: 10,
StartInSearchMode: true,
}
flagStartEnvFile = commoncmd.StringFlag{
Name: "env-file",
Expand Down
13 changes: 7 additions & 6 deletions tools/kysor/cmd/valaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ var (
},
}
flagValaccCreatePool = commoncmd.OptionFlag[uint64]{
Name: "pool",
Short: "p",
Usage: "The ID of the pool this valaccount should participate as a validator",
Required: true,
ValidateFn: commoncmd.ValidateInt,
MaxSelectionSize: 10,
Name: "pool",
Short: "p",
Usage: "The ID of the pool this valaccount should participate as a validator",
Required: true,
ValidateFn: commoncmd.ValidateInt,
MaxSelectionSize: 10,
StartInSearchMode: true,
}
flagValaccCreateStorageProvKey = commoncmd.StringFlag{
Name: "storage-priv",
Expand Down
2 changes: 1 addition & 1 deletion tools/kysor/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.0

require (
github.com/KYVENetwork/chain v1.4.0
github.com/KYVENetwork/kyve-rdk/common/goutils v0.0.0-20240304152107-f836848d458c
github.com/KYVENetwork/kyve-rdk/common/goutils v0.0.0-20240305150835-b68b9cb502bb
github.com/cometbft/cometbft v0.37.2
github.com/cosmos/cosmos-sdk v0.47.6
github.com/cosmos/go-bip39 v1.0.0
Expand Down
4 changes: 2 additions & 2 deletions tools/kysor/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ github.com/KYVENetwork/chain v1.4.0 h1:i/1qgeyYL6LEwKkClXHgx0qjVxWfJtb1NVKqwOyhB
github.com/KYVENetwork/chain v1.4.0/go.mod h1:7O6Avj5hdMyReTS5ykkYn9Vh4Ky8m2G4rwHPl9PyD+M=
github.com/KYVENetwork/cosmos-sdk v0.47.6-kyve-rc0 h1:OoVLykPiZx3ecHY5lZH5TJmBBNADZYnvsNhH/nH8etA=
github.com/KYVENetwork/cosmos-sdk v0.47.6-kyve-rc0/go.mod h1:xTc1chW8HyUWCfrgGbjS5jNu9RzlPVrBNfbL9RmZUio=
github.com/KYVENetwork/kyve-rdk/common/goutils v0.0.0-20240304152107-f836848d458c h1:edvjfCmCNhX2VFs30v0nXxFSCDlD4PB2BNc9vyRMvH0=
github.com/KYVENetwork/kyve-rdk/common/goutils v0.0.0-20240304152107-f836848d458c/go.mod h1:hTu1AKVJ06pSenOSnaA5CFR/t/Z4+T728JxbeRFYCRI=
github.com/KYVENetwork/kyve-rdk/common/goutils v0.0.0-20240305150835-b68b9cb502bb h1:cGura2JOJo5OQA5N2j84XCI00xfVs8pjwtdCvLxMkjE=
github.com/KYVENetwork/kyve-rdk/common/goutils v0.0.0-20240305150835-b68b9cb502bb/go.mod h1:nVhkK8XUh27FooJtjsEdZc8Y7cYw0sy1lFUkHRAgc24=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=
github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
Expand Down

0 comments on commit ce899a1

Please sign in to comment.