getDescriptionFromUser method

dynamic getDescriptionFromUser()

Implementation

getDescriptionFromUser() {
  Logger.info("Enter the extension description [current: '$description'] : ");
  //READING THE INPUT FROM CLI
  final String? input = stdin.readLineSync();
  if (input == "") {
    return;
  } else if (input!.length > 100 || input.length < 3) {
    Logger.error(
        "❌ Description should be less than 100 characters and more than 3\n");
    //AGAIN CALLING THE FUNCTION TO GET THE DESCRIPTION IF IT IS INVALID
    getDescriptionFromUser();
  } else {
    description = input;
  }
}