Part of https://github.com/coder/internal/issues/1400 Batch of refactored CLI tests to avoid creating PTYs.