diff options
author | Julien Dessaux | 2023-05-31 01:19:31 +0200 |
---|---|---|
committer | Julien Dessaux | 2023-05-31 01:19:31 +0200 |
commit | 61b5c8493e57c73469f31a795037922bd9d34931 (patch) | |
tree | 2bfc62120d393efa0664111997dec6e23bcd6642 /main.js | |
parent | Refactoring (diff) | |
download | spacetraders-61b5c8493e57c73469f31a795037922bd9d34931.tar.gz spacetraders-61b5c8493e57c73469f31a795037922bd9d34931.tar.bz2 spacetraders-61b5c8493e57c73469f31a795037922bd9d34931.zip |
Reworked the systems handling and caching with sqlite
Diffstat (limited to 'main.js')
-rwxr-xr-x | main.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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(); |