Commit 94c9fbf1 authored by dmknght's avatar dmknght

Add command pull to run

parent 7ff6df2f
Pipeline #1994 failed with stages
......@@ -192,6 +192,8 @@ proc main() =
elif paramStr(1) == "clone":
echo "[!] Need packages name to clone"
help()
elif paramStr(1) == "pull":
processPullAll()
else:
echo "[!] Don't know command ", paramStr(1)
help()
......@@ -203,11 +205,14 @@ proc main() =
cloneResult = doClone(prjName, sourceFolder)
if cloneResult != 0:
echo "[x] Failed to clone ", prjName
elif paramStr(1) == "update":
elif paramStr(1) == "update" or paramStr(1) == "pull":
var packages: seq[string]
for i in 2 .. paramCount():
packages.add(paramStr(i))
processUpdate(packages)
if paramStr(1) == "update":
processUpdate(packages)
else:
processPull(packages)
else:
echo "[!] Don't know command ", paramStr(1)
help()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment