refactor(gc-cli): provide transform and handle errors function with name