Refactor: tools: Functionize --commit in crm_shadow
Make main() more readable and maintainable
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>