From 65809654f06f8b5153422d0bf9eb81ae0cc399b4 Mon Sep 17 00:00:00 2001 From: Pascal Welsch Date: Fri, 21 Oct 2022 14:16:17 +0200 Subject: [PATCH] Add cliMainFile --- sidekick_core/lib/src/sidekick_package.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sidekick_core/lib/src/sidekick_package.dart b/sidekick_core/lib/src/sidekick_package.dart index 42881383..a7995271 100644 --- a/sidekick_core/lib/src/sidekick_package.dart +++ b/sidekick_core/lib/src/sidekick_package.dart @@ -17,4 +17,9 @@ class SidekickPackage extends DartPackage { String get cliName => name.replaceAll('_sidekick', ''); SidekickDartRuntime get dartRuntime => SidekickDartRuntime(root); + + /// Main file of the CLI plugins are registered where + File get cliMainFile { + return libDir.file('$name.dart'); + } }