Skip to content

Commit

Permalink
feat: drive loopbox from config instead of command line
Browse files Browse the repository at this point in the history
  • Loading branch information
FUDCo committed Jun 10, 2021
1 parent 5e1024e commit d0388ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.

This file was deleted.

7 changes: 1 addition & 6 deletions packages/swingset-runner/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ FLAGS may be:
--globalmetering - install metering on global objects
--meter - run metered vats (implies --globalmetering and --indirect)
--config FILE - read swingset config from FILE instead of inferring it
--loopbox - make the loopbox device available to the bootstrap vat
CMD is one of:
help - print this helpful usage information
Expand Down Expand Up @@ -185,7 +184,6 @@ export async function main() {
let dbDir = null;
let dbSize = 0;
let initOnly = false;
let loopbox = false;

while (argv[0] && argv[0].startsWith('-')) {
const flag = argv.shift();
Expand Down Expand Up @@ -287,9 +285,6 @@ export async function main() {
case '--lmdb':
dbMode = flag;
break;
case '--loopbox':
loopbox = true;
break;
case '-v':
case '--verbose':
verbose = true;
Expand Down Expand Up @@ -340,7 +335,7 @@ export async function main() {
config = loadBasedir(basedir);
}
const deviceEndowments = {};
if (loopbox) {
if (config.loopboxSenders) {
const { loopboxSrcPath, loopboxEndowments } = buildLoopbox('immediate');
config.devices = {
loopbox: {
Expand Down

0 comments on commit d0388ff

Please sign in to comment.