Instead of having to implement https://github.com/wp-cli/scaffold-command/commit/88a21778d5daf7c7eba5214824bb425eaf2afb1c and https://github.com/wp-cli/server-command/pull/15 on a case by case basis, it would be helpful if WP-CLI provided a generic helper utility.