Empty constructor.
Attributes can be set by passing them through arg
.
Example below.
Source
protocol: "git"
filename: "local_name"
url: "https://github.com/Lukc/pkgxx"
Source
Empty constructor.
Attributes can be set by passing them through arg
.
Example below.
Source
protocol: "git"
filename: "local_name"
url: "https://github.com/Lukc/pkgxx"
Argument | Type | Description |
---|---|---|
arg | table | Table of named parameters. |
Type | Description | |
---|---|---|
Source |
Parses a URL string and converts it into a Source.
Argument | Type | Description |
---|---|---|
string | string | Input string to parse. |
Type | Description | |
---|---|---|
Source |
Converts a Lua variable into a Source.
Argument | Type | Description |
---|---|---|
variable | object | Input value to convert. |
Type | Description | |
---|---|---|
Source |
Sources can be safely converted to debug strings that will show @{protocol}, @{url} and @{filename}.
Downloads a source.
Access to a @{Context} is needed to obtain pkg++ modules and downloader backends, as well as the configuration of which directories should store the sources.
Argument | Type | Description |
---|---|---|
context | Context | Context to use to access backends and configuration. |