Create sub command by do end block