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

Split into library and command line frontend #6

Open
Kilobyte22 opened this issue Jun 19, 2014 · 1 comment
Open

Split into library and command line frontend #6

Kilobyte22 opened this issue Jun 19, 2014 · 1 comment

Comments

@Kilobyte22
Copy link

Seperate the project into two different parts, the api and the frontend. The API would look something like this:

local oppm = require('oppm')
oppm.installPackage('foo')
oppm.removePackage('bar')
oppm.upgradePackage('moo')
oppm.installedPackages() -- returns table of installed packages. version number is set to installed version
oppm.allPackages() -- returns list of all packages in local cache. version number is set to latest according to cache
oppm.updateCache() -- downloads latest repository versions

returned lists of packages are in this format:

{
    ["foo"] = {description = "this is a random package", version = '1.0', url = '...'}
}

or something like that.

@Vexatos
Copy link
Contributor

Vexatos commented Jun 19, 2014

The API thing is a really good idea. I will do that. Shouldn't be THAT hard to do.

Vexatos added a commit that referenced this issue Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants