Vexatos-Programs
Vexatos-Programs copied to clipboard
Split into library and command line frontend
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.
The API thing is a really good idea. I will do that. Shouldn't be THAT hard to do.