Skip to content

Commit

Permalink
Add cliMainFile
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Oct 21, 2022
1 parent c772dc3 commit 6580965
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sidekick_core/lib/src/sidekick_package.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit 6580965

Please sign in to comment.