all repos — min @ 26d4adf48c91cb1ae756f8de99fb27fff141fab8

A small but practical concatenative programming language.

Update nifty.json with command descriptions.
h3rald h3rald@h3rald.com
Sat, 31 Mar 2018 16:35:30 +0200
commit

26d4adf48c91cb1ae756f8de99fb27fff141fab8

parent

999cac5503f779318be0d01a1bc232162d10e42b

1 files changed, 45 insertions(+), 56 deletions(-)

jump to
M nifty.jsonnifty.json

@@ -1,72 +1,61 @@

{ - "storage": "packages", - "commands": - { - "install": - { - "git+src": - { + "storage": "packages", + "commands": { + "install": { + "git+src": { "cmd": "git clone {{src}} --depth 1" - }, - "git+src+tag": - { + }, + "git+src+tag": { "cmd": "git clone --branch {{tag}} {{src}} --depth 1" - }, - "curl+src+name": - { + }, + "curl+src+name": { "cmd": "curl {{src}} -o {{name}}" - } - }, - "update": - { - "git+name": - { - "cmd": "git pull", + }, + "_syntax": "install [<package>]", + "_description": "Installs the specified package (or all mapped packages) to the storage directory." + }, + "update": { + "git+name": { + "cmd": "git pull", "pwd": "{{name}}" - }, - "curl+src+name": - { + }, + "curl+src+name": { "cmd": "curl {{src}} -o {{name}}" - } + }, + "_syntax": "update [<package>]", + "_description": "Updates the specified previously-installed package (or all packages)." } - }, - "packages": - { - "nim-sgregex": - { - "name": "nim-sgregex", - "src": "https://github.com/h3rald/nim-sgregex.git", + }, + "packages": { + "nim-sgregex": { + "name": "nim-sgregex", + "src": "https://github.com/h3rald/nim-sgregex.git", "git": true - }, - "nim-miniz": - { - "name": "nim-miniz", - "src": "https://github.com/h3rald/nim-miniz.git", + }, + "nim-miniz": { + "name": "nim-miniz", + "src": "https://github.com/h3rald/nim-miniz.git", "git": true - }, - "nimSHA2": - { - "name": "nimSHA2", - "src": "https://github.com/jangko/nimSHA2.git", + }, + "nimSHA2": { + "name": "nimSHA2", + "src": "https://github.com/jangko/nimSHA2.git", "git": true - }, - "sha1": - { - "name": "sha1", - "src": "https://github.com/onionhammer/sha1.git", + }, + "sha1": { + "name": "sha1", + "src": "https://github.com/onionhammer/sha1.git", "git": true - }, - "nimline": - { - "name": "nimline", - "src": "https://github.com/h3rald/nimline.git", + }, + "nimline": { + "name": "nimline", + "src": "https://github.com/h3rald/nimline.git", "git": true - }, - "niftylogger.nim": - { - "name": "niftylogger.nim", + }, + "niftylogger.nim": { + "name": "niftylogger.nim", "src": "https://raw.githubusercontent.com/h3rald/nifty/master/lib/niftylogger.nim", "curl": true } } -} +}