๐Ÿ“ฆ Use core libraries

๐Ÿ“ฆ Use core libraries

๐Ÿงฉ Source core libraries

A set of core libraries are immediately available on Valet. To use the library functions, you need to source the library that you need, e.g.:

source string
source interactive

All Valet functions are prefixed with the library name. E.g. the function string::cutField is from the string library. A clear error message will be displayed if you are trying to use a library function without sourcing the library.

๐Ÿ’ก
The bash built-in source is overridden by a function in Valet. This allows to not source the same file twice, so you can safely call source mylibrary several times without impacting the runtime performance. If you need to use the default source keyword, use builtin source.

๐ŸŽ€ Available core libraries

For more details, please check the documentation on each library: