all repos — nifty @ 47a4cb1049fba91195090fc98869adb8fcb9b1d6

A tiny (pseudo) package manager and script runner.

Versione nifty.json
* Closes #1.
h3rald h3rald@h3rald.com
Sat, 21 Apr 2018 11:33:40 +0200
commit

47a4cb1049fba91195090fc98869adb8fcb9b1d6

parent

ec4a02b9573bd54a30ec37da46aac7c9af865ba0

2 files changed, 40 insertions(+), 1 deletions(-)

jump to
M .gitignore.gitignore

@@ -1,5 +1,4 @@

nimcache/ nifty.exe nifty -nifty.json packages/
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": + { + } +}