Skip to main content
Skip to main content

import

Source code

This file contains functions for importing libraries

Index

import

bash rust

Import a library, relative to the current script If '@' is prepended to the library name, it will be imported from the base path (PATH_BASE) If '~' is prepended to the library name, it will be imported from the script entry point (ARGSH_SOURCE) If '^' is prepended to the library name, it will be imported from PATH_SCRIPTS

Example

import fmt
import @libs/helper
import ^utils/verbose

Arguments

  • $1 (string): Library name

import::clear

bash rust

Clear the import cache, allowing previously loaded libraries to be re-sourced.

See also

Was this section helpful?