summaryrefslogtreecommitdiff
path: root/src/xi.py
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-11-08 21:33:28 +0000
committerdavidovski <david@davidovski.xyz>2021-11-08 21:33:28 +0000
commita46c1d6cc58b847b9b140de2c59e1c7a8ba06655 (patch)
tree5a92f74188b250f38c6e2fbbd06281fdda3cc227 /src/xi.py
parent1a5101a5c4beeda67a665964d171396eca6f9a5b (diff)
added config parsing
Diffstat (limited to 'src/xi.py')
-rw-r--r--src/xi.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/xi.py b/src/xi.py
index 2449328..90930c2 100644
--- a/src/xi.py
+++ b/src/xi.py
@@ -1,21 +1,20 @@
import options
+import config
-def search(terms):
- print(f"searching for {terms}")
+def search():
pass
-
-def install(terms):
- print(f"installing for {terms}")
+def install():
pass
-
-def remove(terms):
- print(f"removing for {terms}")
+def remove():
+ pass
+def sync():
pass
verbs = { v: globals()[v] for v in [
"search",
- "install"
- "remove"
+ "install",
+ "remove",
+ "sync"
]
}
@@ -27,6 +26,7 @@ def main():
options.print_usage()
return
+ conf = config.parse_file(opts["c"])
if len(args) > 0:
verb = args[0].lower()
(