Vexatos-Programs icon indicating copy to clipboard operation
Vexatos-Programs copied to clipboard

Split into library and command line frontend

Open Kilobyte22 opened this issue 11 years ago • 1 comments

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.

Kilobyte22 avatar Jun 19 '14 14:06 Kilobyte22

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

Vexatos avatar Jun 19 '14 14:06 Vexatos