Skip to content

feat: add support for lua plugins#132

Merged
nikoksr merged 7 commits intomasterfrom
add-lua-plugins
Jul 7, 2020
Merged

feat: add support for lua plugins#132
nikoksr merged 7 commits intomasterfrom
add-lua-plugins

Conversation

@nikoksr
Copy link
Copy Markdown
Collaborator

@nikoksr nikoksr commented Jul 7, 2020

Summary

Drop support for shell scripts and add support for lua scripts. Lua scripts are runnable cross-platform, which makes it superior over shell scripts in our use case.

Proposed Changes

  • Remove shell script support
  • Add lua script support
  • Refactor project create function

Closes #119

nikoksr added 7 commits July 7, 2020 17:46
Proji will now load and execute lua scripts (internally called plugins) instead of shell scripts.
Lua scripts have the advantage that they run cross-platform; where as
the shell scripts do not. Someone who created his powershell script on
windows would have had difficulties sharing it with someone on linux or
mac. Lua solves that problem and introduces a single truth when it
comes to proji scripts.

Closes #119
Until now project.Create received a string which held the
path of the current working directory. That was done to reduce overhead
when creating multiple projects in the same runtime. The problem is that
the function signature looked really confusing. Why do I have to pass my
current working directory to the project.Create function. The parameter
got removed and the function call itself reads in the cwd. So basically
readability > performance in that case.
@nikoksr nikoksr merged commit 0cb97f2 into master Jul 7, 2020
@nikoksr nikoksr deleted the add-lua-plugins branch July 7, 2020 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace shell scripts with lua scripts

1 participant