Implements hook/precommit command