summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorJulien Dessaux2023-05-31 01:19:31 +0200
committerJulien Dessaux2023-05-31 01:19:31 +0200
commit61b5c8493e57c73469f31a795037922bd9d34931 (patch)
tree2bfc62120d393efa0664111997dec6e23bcd6642 /main.js
parentRefactoring (diff)
downloadspacetraders-61b5c8493e57c73469f31a795037922bd9d34931.tar.gz
spacetraders-61b5c8493e57c73469f31a795037922bd9d34931.tar.bz2
spacetraders-61b5c8493e57c73469f31a795037922bd9d34931.zip
Reworked the systems handling and caching with sqlite
Diffstat (limited to '')
-rwxr-xr-xmain.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.js b/main.js
index 04214fd..a2a03a2 100755
--- a/main.js
+++ b/main.js
@@ -109,11 +109,14 @@ default:
case 'systems.shipyards':
api.debugLog(await systems.trait({symbol: process.argv[3], trait: 'SHIPYARD'}));
break;
+ case 'systems.init':
+ await systems.init();
+ break;
case 'systems.system':
api.debugLog(await systems.system({symbol: process.argv[3]}));
break;
- case 'systems.systems':
- api.debugLog(await systems.systems());
+ case 'systems.waypoints':
+ api.debugLog(await systems.waypoints({symbol: process.argv[3]}));
break;
default:
usage();