metaconfig API

add_path_config(confname, default, description)
confname
String
default
String
description
String

defines a path config option CONFNAME. DEFAULT is the default value of this option. DESCRIPTION is the short description of this option which is used from '--help' global option.

add_bool_config(confname, default, description)
confname
String
default
String
description
String

defines a bool config option CONFNAME. DEFAULT is the default value of this option. DESCRIPTION is the short description of this option which is used from '--help' global option.

set_config_default(confname, val)
confname
String
val
String | bool

set default value of config CONFNAME to VAL. If CONFNAME is a bool config, VAL should be boolean. Else VAL should be a String.

remove_config(confname)
confname
String

removes config entry CONFNAME from the installer completely. You must use this method at your own lisk. For example, 'remove_config("prefix")' causes fatal error.

packages -> [String]

Returns the list of package names. This method raises RuntimeError if called in the single package archive.

declare_packages(list)
list
[String]

Set the ordered list of installing package names. This method raises RuntimeError if called in the single package archive.