-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(loader): Derive entrypoint from filehandler's listing
This commit makes the MelodyLoader use the new FileHandler capability to enumerate files in order to automatically derive the `entrypoint` in more cases. It will now look into the filehandler's root directory, and if there is exactly one `.aird` file, that becomes the new entrypoint. If there is more than one `.aird` file in the root directory, an error will be raised, and the same is true if the root directory does not directly contain any `.aird` files. In these cases, it is still necessary to manually specify the `entrypoint` at load time.
- Loading branch information
1 parent
f04debb
commit edd2c3c
Showing
2 changed files
with
40 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters