Don't get command through client.{Get,Post}Commands()

Logic has changed recently and commands are now enriched
with flags by default.

Closes: #2884
This commit is contained in:
Alessio Treglia 2018-11-22 13:51:51 +00:00
parent f09fa33cfd
commit c245a3deb1
1 changed files with 25 additions and 27 deletions

View File

@ -72,35 +72,33 @@ func main() {
// add query/post commands (custom to binary) // add query/post commands (custom to binary)
rootCmd.AddCommand( rootCmd.AddCommand(
client.GetCommands( stakecmd.GetCmdQueryValidator(storeStake, cdc),
stakecmd.GetCmdQueryValidator(storeStake, cdc), stakecmd.GetCmdQueryValidators(storeStake, cdc),
stakecmd.GetCmdQueryValidators(storeStake, cdc), stakecmd.GetCmdQueryValidatorUnbondingDelegations(storeStake, cdc),
stakecmd.GetCmdQueryValidatorUnbondingDelegations(storeStake, cdc), stakecmd.GetCmdQueryValidatorRedelegations(storeStake, cdc),
stakecmd.GetCmdQueryValidatorRedelegations(storeStake, cdc), stakecmd.GetCmdQueryDelegation(storeStake, cdc),
stakecmd.GetCmdQueryDelegation(storeStake, cdc), stakecmd.GetCmdQueryDelegations(storeStake, cdc),
stakecmd.GetCmdQueryDelegations(storeStake, cdc), stakecmd.GetCmdQueryPool(storeStake, cdc),
stakecmd.GetCmdQueryPool(storeStake, cdc), stakecmd.GetCmdQueryParams(storeStake, cdc),
stakecmd.GetCmdQueryParams(storeStake, cdc), stakecmd.GetCmdQueryUnbondingDelegation(storeStake, cdc),
stakecmd.GetCmdQueryUnbondingDelegation(storeStake, cdc), stakecmd.GetCmdQueryUnbondingDelegations(storeStake, cdc),
stakecmd.GetCmdQueryUnbondingDelegations(storeStake, cdc), stakecmd.GetCmdQueryRedelegation(storeStake, cdc),
stakecmd.GetCmdQueryRedelegation(storeStake, cdc), stakecmd.GetCmdQueryRedelegations(storeStake, cdc),
stakecmd.GetCmdQueryRedelegations(storeStake, cdc), slashingcmd.GetCmdQuerySigningInfo(storeSlashing, cdc),
slashingcmd.GetCmdQuerySigningInfo(storeSlashing, cdc), authcmd.GetAccountCmd(storeAcc, cdc),
authcmd.GetAccountCmd(storeAcc, cdc), )
)...)
rootCmd.AddCommand( rootCmd.AddCommand(
client.PostCommands( bankcmd.SendTxCmd(cdc),
bankcmd.SendTxCmd(cdc), ibccmd.IBCTransferCmd(cdc),
ibccmd.IBCTransferCmd(cdc), ibccmd.IBCRelayCmd(cdc),
ibccmd.IBCRelayCmd(cdc), stakecmd.GetCmdCreateValidator(cdc),
stakecmd.GetCmdCreateValidator(cdc), stakecmd.GetCmdEditValidator(cdc),
stakecmd.GetCmdEditValidator(cdc), stakecmd.GetCmdDelegate(cdc),
stakecmd.GetCmdDelegate(cdc), stakecmd.GetCmdUnbond(storeStake, cdc),
stakecmd.GetCmdUnbond(storeStake, cdc), stakecmd.GetCmdRedelegate(storeStake, cdc),
stakecmd.GetCmdRedelegate(storeStake, cdc), slashingcmd.GetCmdUnjail(cdc),
slashingcmd.GetCmdUnjail(cdc), )
)...)
// add proxy, version and key info // add proxy, version and key info
rootCmd.AddCommand( rootCmd.AddCommand(