diff options
author | davidovski <david@davidovski.xyz> | 2021-11-08 21:33:28 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2021-11-08 21:33:28 +0000 |
commit | a46c1d6cc58b847b9b140de2c59e1c7a8ba06655 (patch) | |
tree | 5a92f74188b250f38c6e2fbbd06281fdda3cc227 /src/xi.py | |
parent | 1a5101a5c4beeda67a665964d171396eca6f9a5b (diff) |
added config parsing
Diffstat (limited to 'src/xi.py')
-rw-r--r-- | src/xi.py | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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() ( |