Versione nifty.json * Closes #1.
h3rald h3rald@h3rald.com
Sat, 21 Apr 2018 11:33:40 +0200
2 files changed,
40 insertions(+),
1 deletions(-)
A
lib/nifty.json
@@ -0,0 +1,40 @@
+{ + "storage": "$1", + "commands": + { + "install": + { + "_syntax": "install [<package>]", + "_description": "Installs the specified package (or all mapped packages) to the storage directory.", + "git+src": + { + "cmd": "git clone {{src}} --depth 1" + }, + "git+src+tag": + { + "cmd": "git clone --branch {{tag}} {{src}} --depth 1" + }, + "curl+src+name": + { + "cmd": "curl {{src}} -o {{name}}" + } + }, + "update": + { + "_syntax": "update [<package>]", + "_description": "Updates the specified previously-installed package (or all packages).", + "git+name": + { + "cmd": "git pull", + "pwd": "{{name}}" + }, + "curl+src+name": + { + "cmd": "curl {{src}} -o {{name}}" + } + } + }, + "packages": + { + } +}