validate method

  1. @override
Future<void> validate()
override

Implementation

@override
Future<void> validate() async {
  await super.validate();
  bool appDirectoryExist = await checkDirectoryExist(Constants.appDirectoryPath);
  if (appDirectoryExist) {
    throw CliException(message: "Initialization already completed");
  }
}