confirmEntireProject method

String confirmEntireProject()

Implementation

String confirmEntireProject() {
  final confirmation = Confirm(
    prompt: 'Are you sure you want to select the entire project?',
    defaultValue: false,
  ).interact();
  if (confirmation) {
    return Directory.current.path; // Return entire project path
  } else {
    exit(1);
  }
}