mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
Added basic DSL support library.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
0365b413ab
commit
25befb4281
2 changed files with 168 additions and 0 deletions
|
|
@ -50,6 +50,11 @@ function nux.echo.warning {
|
|||
echo -e "${NC_warning}$* ${NC_No}";
|
||||
}
|
||||
|
||||
function nux.use {
|
||||
local incfile="$1.inc.sh"
|
||||
source "$NUX_INC_DIR/$incfile"
|
||||
}
|
||||
|
||||
|
||||
function nux.include {
|
||||
local incfile="$1.inc.sh"
|
||||
|
|
@ -60,3 +65,7 @@ function nux.check.function {
|
|||
declare -f "$1" &>/dev/null && return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
function nux.check.file.exists {
|
||||
test -e "$1" -o -h "$1";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue