mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
nuxfs: Added cathegorize keyword.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
c412900a21
commit
429a0d3258
6 changed files with 126 additions and 2 deletions
13
inc/dsl/nuxfs.fix.dsl
Normal file
13
inc/dsl/nuxfs.fix.dsl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
.use-dsl nuxfs.apply
|
||||
|
||||
should-not-exists.check.failed() {
|
||||
for f in "$rel_path"; do
|
||||
rm -r "$f"
|
||||
nux.dsl.info $f Deleted.
|
||||
done
|
||||
}
|
||||
|
||||
cathegorize.process.file() {
|
||||
mv "$rel_file" "$cat_dir"
|
||||
nux.dsl.info "$rel_file" Moved to $NC_White$cat_dir$NC_No
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue