execute method

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

Implementation

@override
Future<void> execute() async {
  repository.ignore.createIgnoreFile(
    onRepositoryNotInitialized: () => debugPrintToConsole(
      message: "Repository not initialized",
    ),
    onAlreadyExists: () => debugPrintToConsole(
      message: "Ignore file already exists",
      color: CliColor.red,
    ),
    onSuccessfullyCreated: () => debugPrintToConsole(
      message: "Ignore file successfully created",
    ),
  );
}