Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Return the block with the given :attr:`command`.

Returns None if the block is not found.

src/k/u/kurt-2.0.5/kurt/__init__.py   kurt(Download)
            block_type = block_type.command
 
        block = kurt.plugin.Kurt.block_by_command(block_type)
        if block:
            return block
 
        blocks = kurt.plugin.Kurt.blocks_by_text(block_type)
        for block in blocks: # check the blocks' commands map to unique blocks
            if kurt.plugin.Kurt.block_by_command(
                    block.convert().command) != blocks[0]:

src/k/u/kurt-HEAD/kurt/__init__.py   kurt(Download)
            block_type = block_type.command
 
        block = kurt.plugin.Kurt.block_by_command(block_type)
        if block:
            return block
 
        blocks = kurt.plugin.Kurt.blocks_by_text(block_type)
        for block in blocks: # check the blocks' commands map to unique blocks
            if kurt.plugin.Kurt.block_by_command(
                    block.convert().command) != blocks[0]: