package cli import ( "context" "colinear/x/colinearcore/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" ) func CmdShowLockedUsers() *cobra.Command { cmd := &cobra.Command{ Use: "show-locked-users", Short: "shows lockedUsers", Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { clientCtx := client.GetClientContextFromCmd(cmd) queryClient := types.NewQueryClient(clientCtx) params := &types.QueryGetLockedUsersRequest{} res, err := queryClient.LockedUsers(context.Background(), params) if err != nil { return err } return clientCtx.PrintProto(res) }, } flags.AddQueryFlagsToCmd(cmd) return cmd }