-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdpr.nim
More file actions
26 lines (23 loc) · 726 Bytes
/
dpr.nim
File metadata and controls
26 lines (23 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from os import commandLineParams
import faces,targets, actions, dpropts
var args = commandLineParams()
if (args.contains("--help") or args.contains("-h")):
echo fullHelp
echo "" ; echo " *** Tools help page ***" ; echo ""
let face = args.face
let target = args.target
case face.action(args):
of INFO:target.info(args)
of INSTALL:target.install(args)
of FILES:target.files(args)
of LIST:target.list(args)
of ORPHAN:target.orphan(args)
of REMOVE:target.remove(args)
of SEARCH:target.search(args)
of WHERE:target.where(args)
of UPGRADE:target.upgrade(args)
of UPGRADEALL:target.upgradeall(args)
of PASSTHROUGH:target.passthrough(args)
else:
if not targetWasSaved:
quit "Invalid command"