Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use require wherever possible #27

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions src/autostartup/apis/autostartup

This file was deleted.

3 changes: 3 additions & 0 deletions src/autostartup/modules/autostartup.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package.path = package.path .. ";/modules/?;/modules/?.lua;/modules/?/init.lua"
local dns = require("dns")

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the rest of this file's contents are missing? Ditto for every other package converted to a module - it seems like only the new modules have any actual code.

Copy link
Author

@tomodachi94 tomodachi94 Dec 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-.- Not sure what happened here. I'll try to fix this tomorrow.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll work on fix later today.

37 changes: 0 additions & 37 deletions src/dns/apis/dns

This file was deleted.

3 changes: 3 additions & 0 deletions src/dns/modules/dns.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package.path = package.path .. ";/modules/?;/modules/?.lua;/modules/?/init.lua"
local util = require("util")
local dns = {}
96 changes: 0 additions & 96 deletions src/events/apis/events

This file was deleted.

3 changes: 3 additions & 0 deletions src/events/modules/events.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package.path = package.path .. ";/modules/?;/modules/?.lua;/modules/?/init.lua"
local util = require("util")
local events = {}
133 changes: 0 additions & 133 deletions src/graph/apis/graph

This file was deleted.

3 changes: 3 additions & 0 deletions src/graph/modules/graph.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package.path = package.path .. ";/modules/?;/modules/?.lua;/modules/?/init.lua"
local graph = {}

67 changes: 0 additions & 67 deletions src/graphmanager/apis/graphmanager

This file was deleted.

3 changes: 3 additions & 0 deletions src/graphmanager/modules/graphmanager.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package.path = package.path .. ";/modules/?;/modules/?.lua;/modules/?/init.lua"
local net = require("net")
local serializer = require("serializer")
Loading