validate method

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

Implementation

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