-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
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 versionsreturned lists of packages are in this format:
{
["foo"] = {description = "this is a random package", version = '1.0', url = '...'}
}or something like that.