diff --git a/x/assets/client/cli/query.go b/x/assets/client/cli/query.go index 6153dbeba..8dcd4eeba 100644 --- a/x/assets/client/cli/query.go +++ b/x/assets/client/cli/query.go @@ -42,7 +42,7 @@ func GetQueryCmd() *cobra.Command { // GetParamsCmd queries the module parameters func GetParamsCmd() *cobra.Command { cmd := &cobra.Command{ - Use: "Params", + Use: "params", Short: "Gets assets module params", Long: "Gets assets module params", Args: cobra.NoArgs, @@ -72,7 +72,7 @@ func GetParamsCmd() *cobra.Command { // QueClientChainInfoByIndex queries the client chain info by index func QueClientChainInfoByIndex() *cobra.Command { cmd := &cobra.Command{ - Use: "QueClientChainInfoByIndex ", + Use: "client-chain ", Short: "Get client chain info by client chain Id", Long: "Get client chain info by client chain Id", Args: cobra.ExactArgs(1), @@ -104,7 +104,7 @@ func QueClientChainInfoByIndex() *cobra.Command { // QueAllClientChainInfo queries all client chain info func QueAllClientChainInfo() *cobra.Command { cmd := &cobra.Command{ - Use: "QueAllClientChainInfo", + Use: "all-client-chains", Short: "Get all client chain info", Long: "Get all client chain info", Args: cobra.ExactArgs(0), @@ -131,7 +131,7 @@ func QueAllClientChainInfo() *cobra.Command { // QueStakingAssetInfo queries staking asset info func QueStakingAssetInfo() *cobra.Command { cmd := &cobra.Command{ - Use: "QueStakingAssetInfo ", + Use: "staking-asset ", Short: "Get staking asset info", Long: "Get staking asset info", Args: cobra.ExactArgs(2), @@ -166,7 +166,7 @@ func QueStakingAssetInfo() *cobra.Command { // QueAllStakingAssetsInfo queries all staking asset info func QueAllStakingAssetsInfo() *cobra.Command { cmd := &cobra.Command{ - Use: "QueAllStakingAssetsInfo", + Use: "all-staking-assets", Short: "Get all staking asset info", Long: "Get all staking asset info", Args: cobra.ExactArgs(0), @@ -193,7 +193,7 @@ func QueAllStakingAssetsInfo() *cobra.Command { // QueStakerAssetInfos queries staker asset info func QueStakerAssetInfos() *cobra.Command { cmd := &cobra.Command{ - Use: "QueStakerAssetInfos ", + Use: "staker-assets ", Short: "Get staker asset state", Long: "Get staker asset state", Args: cobra.ExactArgs(1), @@ -227,7 +227,7 @@ func QueStakerAssetInfos() *cobra.Command { // QueStakerSpecifiedAssetAmount queries staker specified asset info func QueStakerSpecifiedAssetAmount() *cobra.Command { cmd := &cobra.Command{ - Use: "QueStakerSpecifiedAssetAmount ", + Use: "staker-asset-amount ", Short: "Get staker specified asset state", Long: "Get staker specified asset state", Args: cobra.ExactArgs(3), @@ -262,7 +262,7 @@ func QueStakerSpecifiedAssetAmount() *cobra.Command { // QueOperatorAssetInfos queries operator asset info func QueOperatorAssetInfos() *cobra.Command { cmd := &cobra.Command{ - Use: "QueOperatorAssetInfos ", + Use: "operator-assets ", Short: "Get operator asset state", Long: "Get operator asset state", Args: cobra.ExactArgs(1), @@ -295,7 +295,7 @@ func QueOperatorAssetInfos() *cobra.Command { // QueOperatorSpecifiedAssetAmount queries specified operator asset info func QueOperatorSpecifiedAssetAmount() *cobra.Command { cmd := &cobra.Command{ - Use: "QueOperatorSpecifiedAssetAmount ", + Use: "operator-asset-amount ", Short: "Get operator specified asset state", Long: "Get operator specified asset state", Args: cobra.ExactArgs(3), diff --git a/x/assets/client/cli/tx.go b/x/assets/client/cli/tx.go index 8ec57374e..ffcdd8bd5 100644 --- a/x/assets/client/cli/tx.go +++ b/x/assets/client/cli/tx.go @@ -32,7 +32,7 @@ func NewTxCmd() *cobra.Command { // UpdateParams todo: it should be a gov proposal command in future. func UpdateParams() *cobra.Command { cmd := &cobra.Command{ - Use: "UpdateParams Gateways", + Use: "update-params Gateways", Short: "Set Authorized Gateways for assets module as comma separated list of hex addresses", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { diff --git a/x/delegation/client/cli/query.go b/x/delegation/client/cli/query.go index 8c7c9093f..7d3c65271 100644 --- a/x/delegation/client/cli/query.go +++ b/x/delegation/client/cli/query.go @@ -43,7 +43,7 @@ func GetQueryCmd() *cobra.Command { // QuerySingleDelegationInfo queries the single delegation info func QuerySingleDelegationInfo() *cobra.Command { cmd := &cobra.Command{ - Use: "QuerySingleDelegationInfo ", + Use: "delegation ", Short: "Get single delegation info", Long: "Get single delegation info", Args: cobra.ExactArgs(4), @@ -83,7 +83,7 @@ func QuerySingleDelegationInfo() *cobra.Command { // QueryDelegationInfo queries delegation info func QueryDelegationInfo() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryDelegationInfo ", + Use: "delegations ", Short: "Get delegation info", Long: "Get delegation info", Args: cobra.ExactArgs(2), @@ -120,7 +120,7 @@ func QueryDelegationInfo() *cobra.Command { // QueryUndelegations queries all undelegations for staker and asset func QueryUndelegations() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryUndelegations ", + Use: "undelegations ", Short: "Get undelegations", Long: "Get undelegations", Args: cobra.ExactArgs(2), @@ -158,7 +158,7 @@ func QueryUndelegations() *cobra.Command { // QueryUndelegationsByEpochInfo queries all undelegations waiting to be completed by epoch info. func QueryUndelegationsByEpochInfo() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryUndelegationsByEpochInfo ", + Use: "undelegations-by-epoch-info ", Short: "Get undelegations waiting to be completed", Long: "Get undelegations waiting to be completed", Args: cobra.ExactArgs(2), @@ -195,7 +195,7 @@ func QueryUndelegationsByEpochInfo() *cobra.Command { // QueryUndelegationHoldCount queries undelegation hold count for a record key. func QueryUndelegationHoldCount() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryUndelegationHoldCount ", + Use: "undelegation-hold-count ", Short: "Get undelegation hold count", Long: "Get undelegation hold count", Args: cobra.ExactArgs(3), @@ -237,7 +237,7 @@ func QueryUndelegationHoldCount() *cobra.Command { // QueryAssociatedOperatorByStaker queries the operator owner of the specified staker func QueryAssociatedOperatorByStaker() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryAssociatedOperatorByStaker ", + Use: "associated-operator-by-staker ", Short: "Get the associated operator for the specified staker", Long: "Get the associated operator for the specified staker", Args: cobra.ExactArgs(1), @@ -269,7 +269,7 @@ func QueryAssociatedOperatorByStaker() *cobra.Command { func QueryAssociatedStakersByOperator() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryAssociatedStakersByOperator ", + Use: "associated-stakers-by-operator ", Short: "Get the associated stakers for the specified operator", Long: "Get the associated stakers for the specified operator", Args: cobra.ExactArgs(1), @@ -301,7 +301,7 @@ func QueryAssociatedStakersByOperator() *cobra.Command { func QueryDelegatedStakersByOperator() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryDelegatedStakersByOperator ", + Use: "delegated-stakers-by-operator ", Short: "Get the delegated stakers for the specified operator and asset", Long: "Get the delegated stakers for the specified operator and asset", Args: cobra.ExactArgs(2), diff --git a/x/operator/client/cli/query.go b/x/operator/client/cli/query.go index 4cfa3c168..81ccda071 100644 --- a/x/operator/client/cli/query.go +++ b/x/operator/client/cli/query.go @@ -281,7 +281,7 @@ func GetAllOperatorConsAddrs() *cobra.Command { // QueryOperatorUSDValue queries the opted-in USD value for the operator func QueryOperatorUSDValue() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryOperatorUSDValue ", + Use: "operator-usd-value ", Short: "Get the opted-in USD value", Long: "Get the opted-in USD value for the operator", Example: "exocored query operator QueryOperatorUSDValue exo1c5x7mxphvgavjhu0au9jjqnfqcyspevtyy27mz 0xaa089ba103f765fcea44808bd3d4073523254c57", @@ -308,7 +308,7 @@ func QueryOperatorUSDValue() *cobra.Command { // QueryAVSUSDValue queries the USD value for the avs func QueryAVSUSDValue() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryAVSUSDValue ", + Use: "avs-usd-value ", Short: "Get the USD value for the avs", Long: "Get the USD value for the avs", Args: cobra.ExactArgs(1), @@ -339,7 +339,7 @@ func QueryAVSUSDValue() *cobra.Command { // QueryOperatorSlashInfo queries the slash information for the specified operator and AVS func QueryOperatorSlashInfo() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryOperatorSlashInfo ", + Use: "operator-slash-info ", Short: "Get the the slash information for the operator", Long: "Get the the slash information for the operator", Example: "exocored query operator QueryOperatorSlashInfo exo1c5x7mxphvgavjhu0au9jjqnfqcyspevtyy27mz 0xaa089ba103f765fcea44808bd3d4073523254c57", @@ -437,7 +437,7 @@ func QueryAllAVSsByOperator() *cobra.Command { // GetOptInfo queries opt info func GetOptInfo() *cobra.Command { cmd := &cobra.Command{ - Use: "GetOptInfo ", + Use: "opt-info ", Short: "Get opt info", Long: "Get opt info of specified operator and AVS", Example: "exocored query operator GetOptInfo exo1c5x7mxphvgavjhu0au9jjqnfqcyspevtyy27mz 0xaa089ba103f765fcea44808bd3d4073523254c57",