Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Apr 28, 2022
1 parent f64d0f5 commit ad30144
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/agoric-cli/src/deploy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global process setTimeout setInterval clearInterval */
/* eslint-env node */
/* eslint-disable no-await-in-loop */

import { E, makeCapTP } from '@endo/captp';
Expand Down Expand Up @@ -123,11 +123,13 @@ export default async function deployMain(progname, rawArgs, powers, opts) {

const getDefaultConnection = async () => {
const connections = await listConnections();
globalThis.console.log('\nConnection options:');
const lookup = new Map(connections.map((connection, index) => {
globalThis.console.log(`${index + 1}.`, connection);
return [`${index + 1}`, connection];
}));
console.log('\nConnection options:');
const lookup = new Map(
connections.map((connection, index) => {
console.log(`${index + 1}.`, connection);
return [`${index + 1}`, connection];
}),
);
const { connectionNumber } = await inquirer.prompt({
name: 'connectionNumber',
message: 'Please choose a connection to publish to',
Expand Down

0 comments on commit ad30144

Please sign in to comment.