all repos — nifty @ ec4a02b9573bd54a30ec37da46aac7c9af865ba0

A tiny (pseudo) package manager and script runner.

Minor changes.
h3rald h3rald@h3rald.com
Sat, 31 Mar 2018 16:33:11 +0200
commit

ec4a02b9573bd54a30ec37da46aac7c9af865ba0

parent

6cb5b66449ed58d390ab8b82cd8e6857932d79c4

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M nifty.nimnifty.nim

@@ -94,14 +94,14 @@ pkg.confirmAndRemoveDir()

else: warn "Package '$1' not found." % pkg -proc listPackages(prj: NiftyProject, dir: string): TreeNode = +proc buildTree(prj: NiftyProject, dir: string): TreeNode = var node = newTreeNode(dir.extractFilename) for k, v in prj.packages.pairs: var d = dir / prj.storage / k var p = newNiftyProject(d) if p.configured: p.load - node.add listPackages(p, d) + node.add buildTree(p, d) else: node.add newTreeNode(k) return node

@@ -223,7 +223,7 @@ confirmAndRemovePackage(prj.storage/args[1])

of "list": prj.load let pwd = getCurrentDir() - echo listPackages(prj, pwd).tree + echo buildTree(prj, pwd).tree of "info": if args.len < 2: fatal "No package specified."
M nifty.nimblenifty.nimble

@@ -2,7 +2,7 @@ [Package]

name = "nifty" version = "1.0.0" author = "Fabio Cevasco" -description = "A pseudo package manager and script runner." +description = "A decentralized (pseudo) package manager and script runner." license = "MIT" bin = "nifty"