Skip to content

Split into library and command line frontend #6

Description

@Kilobyte22

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions