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

nuxfs: Added support for custom / folder specific DSL

Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
Tony Tkáčik 2017-06-10 21:25:52 +02:00
parent d3be24f3d7
commit 5d69659e3c
5 changed files with 102 additions and 80 deletions

13
inc/dsl/nuxfs.apply.dsl Normal file
View file

@ -0,0 +1,13 @@
.use-dsl nuxfs
dir.check.recover() {
nuxfs.info "$rel_path" "Created directory";
mkdir -p "$abs_path"
}
link.check.recover() {
nuxfs.info "$rel_path" "Creating link to '$3'";
ln -s "$3" "$abs_path"
}
git.check.recover() {
$GIT_BIN clone "$3" "$abs_path"
}