using Capture::Tiny to capture stdout from system when called by cuterepos
synced to new toggle_repo implementation