ciStep function

Future<CIConfig> ciStep()

Prompts for CI/CD provider.

Implementation

Future<CIConfig> ciStep() async {
  final options = ['none', 'github_actions'];
  final labels = ['None', 'GitHub Actions (.github/workflows/)'];

  final idx = Select(
    prompt: 'CI/CD provider',
    options: labels,
    initialIndex: 0,
  ).interact();

  return CIConfig(provider: options[idx]);
}