introduce 'before_invoke:{cmd}' hook and use it for site-meta command