Documentation for Bash has not been automatically generated, so here it is by hand.
AlfredBundler::.
Loads an asset. Takes up to four arguments (minimum of two).
The type of asset. For libraries, use bash, for utilities, use utility.
The name of the asset.
(optional) The version of the asset. If a version is not specified, then latest will be assumed.
(optional) The path to the JSON file that defines the asset. The argument is needed only when loading a custom asset.
Loads a library. A wrapper function around AlfredBundler::load that automatically fills in type as bash.
Thus, it requires one argument but will take three.
Loads a utility. A wrapper function around AlfredBundler::load that automatically fills in type as utility.
Thus, it requires one argument but will take three.
Loads an icon. Takes up to four arguments, which are the standard ones described on the icons page.
The icon font to use (see the icon server for a list of supported fonts).
Use system to get a system icon.
The name of the icon. If you're asking for a system icon, do not include .icns.
(optional) A three- or six-digit hex color. If not specified, then it will fallback to 000000 (black).
(optional) Takes either true or false, indicating whether or not to dynamically adjust the
"lightness" of the icon based on the user's background. See the icons page for a better explanation.
Defaults to false unless the color argument is not given in which case the alter value defaults
to true.
Logs to a file or the console (or both). Takes up to three arguments.
Sends a system notification with CocoaDialog
icon.png file does not exist, then the bundler's icon will be used instead.
There are several functions that the Bundler uses internally yet may be potentially helpful for a workflow author.
Among these is a small library for floating point math, which has an individual documentation page.
Checks whether a string is a valid hex color.
Converts an RGB colorspace to an HSV colorspace.
ra red value (0–255)
ga green value (0–255)
ba blue value (0–255)
Converts an HSV colorspace to an RGB colorspace.
hthe hue, 0–360
sthe saturation, 0–1 (float)
vthe value, 0–1 (float)
Converts a hex color to an RGB colorspace
a hex color as a string
Converts an RGB colorspace to a hex string
ra red value (0–255)
ga green value (0–255)
ba blue value (0–255)
Calculates the luminance of a color
A hex color as a string
ra red value (0–255)
ga green value (0–255)
ba blue value (0–255)
Returns either light or dark based on a luminance calculation
A hex color as a string
ra red value (0–255)
ga green value (0–255)
ba blue value (0–255)
Post on the Alfred Forum thread.
Open an issue in the Github queue.