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

Fixed nux-env and taskie

This commit is contained in:
Tony Tkáčik 2023-08-24 10:59:35 +02:00
parent b04b28f5ea
commit 1cc5b48e4f
4 changed files with 43 additions and 12 deletions

View file

@ -5,7 +5,7 @@
## highlight:: <language> <file>
task.highlight() {
nux.use nux/nuxsh
nux.dsl.process highlight nux.nuxsh.language.def "$2"
}
@ -23,8 +23,10 @@ task.plan.compile() {
}
task.plan.preview() {
nux.dsl.plan nux.nuxsh.language "$2"
plan="$(nudsl.plan.file "$1" "$2")"
nux.use nux/nuxsh
nux.dsl.plan nux.nuxsh.language.def "$1"
plan="$(nudsl.plan.file nux.nuxsh.language.def "$1")"
nux.log info "Plan file: $plan"
if [ -e "$plan" ]; then
if [ -n "$(which pygmentize)" ]; then
pygmentize -l bash "$plan";