1
1
Fork 0
mirror of https://github.com/tonydamage/nux-env.git synced 2025-12-11 13:24:28 +01:00

Added fixmes & minor updates.

Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
Tony Tkáčik 2018-05-18 15:56:38 +02:00
parent b72149b69c
commit 6dafaf5b9d
5 changed files with 63 additions and 29 deletions

View file

@ -1,36 +1,44 @@
#!/usr/bin/env nux-runner
#!/usr/bin/env nuxr-nuxsh
## Portable *nix environment by tonydamage
## status::
## Show status of nux-env installation
task.status() {
echo nux-env folder: $NUX_ENV_DIR
pushd $NUX_ENV_DIR > /dev/null
git status
popd > /dev/null
}
@namespace task. {
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.
task.update() {
pushd $NUX_ENV_DIR > /dev/null
git stash
git pull -r
git stash pop
popd > /dev/null
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
task.install() {
:
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.
##
task.help.library() {
local name="$1"
nux.help.comment $NUX_INC_DIR/$name.inc.sh
function :help.library name {
nux.help.comment $NUX_INC_DIR/$name.inc.sh
}
}