Skip to content

Latest commit

 

History

History
84 lines (45 loc) · 1.34 KB

REFERENCE.md

File metadata and controls

84 lines (45 loc) · 1.34 KB

import:source()

Sources specified module from vendors dir.

Example

import:source "github.com/reconquest/tests.sh"

Arguments

  • $1 (string): Module name to import.

Output on stdout

  • ? Whatever sourced module outputs.

Exit codes

  • ? Whatever sourced module returns.

import:path:get()

Returns used IMPORTPATH.

IMPORTPATH is used for looking for vendors while importing.

Output on stdout

  • Paths, separated by colon (:).

Function has no arguments.

import:path:append()

Appends given argument to the IMPORTPATH.

All further imports will look for vendors in the specified directories.

Arguments

  • $1 (string): Path to append.

import:path:prepend()

Prepends given argument to the IMPORTPATH.

All further imports will look for vendors in the specified directories.

Arguments

  • $1 (string): Path to prepend.

import:include()

Sources relative script file.

Example

import:include options.sh

Arguments

  • $1 (string): Script name to source.

Output on stdout

  • ? Whatever sourced script outputs.

Exit codes

  • ? Whatever sourced script returns.