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

public API? #7

Open
2 of 3 tasks
Alloyed opened this issue May 25, 2016 · 0 comments
Open
2 of 3 tasks

public API? #7

Alloyed opened this issue May 25, 2016 · 0 comments

Comments

@Alloyed
Copy link
Owner

Alloyed commented May 25, 2016

loverocks is already about 80% there. An example from the test files:

local Purge   = require 'loverocks.commands.purge'
local New     = require 'loverocks.commands.new'
local Install = require 'loverocks.commands.install'

New.run {
    project      = "my-project",
    template     = "love",
    love_version = "0.10.1",
}

lfs.chdir("my-project")

Install.run {
    packages = {"inspect"},
    only_server = cwd .. "/test-repo"
}

Purge.run {}

Problems:

  • global state: current working directory, the logger
  • config loading happens at the command level for reasons I've forgotten, try to hoist it up
  • loverocks.api is already taken by my loverocks <-> luarocks layer. oops.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant