jazzdotdev / jazzdotdev/flute

Import package's modules automatically when they are used as if they were globals

Open
#44 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
17
Forks
4
PR merge metrics
No merged PRs in 30d

Description

After #43, make the package loader add an `__index` metamethod to `_ENV` to make modules be used like `my_package.submodule.foo()` instead of `local submodule = require("my_package.submodule"); submodule.foo()`

To decide if this should only work with packages or with any kind of module, and also if it should use local packages directly, like if we are in `my_package.module_a`, then `module_b` would behave the same as `my_package.module_b`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.