Loading

IMPORT


stack
Since v2.0.3
Available on all platforms

The IMPORT function allows to create aliases for macro name prefixes. This is handy when accessing macros from WarpFleetâ„¢ repositories which might have multiple versions and/or long group and artifact ids. When fetching a macro, the imported prefixes will be scanned and the longest matching one will be replaced by the associated alias.

Signature

Examples

// // Create an alias 'ga' for 'group/artifact/x.y.z' // 'group/artifact/x.y.z' 'ga' IMPORT // Macro name 'ga/foo' will be changed to 'group/artifact/x.y.z/foo' prior // to begin resolved @ga/foo