1
1
Fork 0
mirror of https://github.com/tonydamage/nux-env.git synced 2025-12-11 13:24:28 +01:00
nux-env/bin/nux-env
Tony Tkacik 4c4bb238a0 Legacy sync
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
2020-03-05 12:20:11 +01:00

52 lines
1.1 KiB
Text
Executable file

#!/usr/bin/env nuxr-nuxsh
## Portable *nix environment by tonydamage
##
@namespace task. {
## status::
## Show status of nux-env installation
function :status {
echo nux-env folder: $NUX_ENV_DIR
pushd $NUX_ENV_DIR > /dev/null
git status
popd > /dev/null
}
## update::
## pulls latest nux-env from repository.
function :update {
pushd $NUX_ENV_DIR > /dev/null
git stash
git pull -r
git stash pop
popd > /dev/null
}
## install::
## Install nux-env recommended binaries if not present
function :install {
:
}
## fixmes::
## List all fixmes for nux-env
function :fixmes {
fgrep -n FIXME "$NUX_INC_DIR/..bin/"*
find "$NUX_INC_DIR" -iname "*.sh" | xargs fgrep -n FIXME
}
## help library:: <inc>
## Displays help for specified nuxs-env library.
##
function :help.library name {
nux.log debug "Library"
if [ -e "$NUX_INC_DIR/$name.inc.sh" ] {
nux.help.comment $NUX_INC_DIR/$name.inc.sh
elif [ -e "$NUX_INC_DIR/$name.nuxsh.sh" ]; then
nux.help.comment $NUX_INC_DIR/$name.nuxsh.sh
else
nux.fatal "Library not found"
}
}
}