Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/nodes/CommandConnections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ import type PolykeyClient from 'polykey/PolykeyClient.js';
import type { NodeConnectionMessage } from 'polykey/client/types.js';
import CommandPolykey from '../CommandPolykey.js';
import * as binUtils from '../utils/utils.js';
import * as binOptions from '../utils/options.js';
import * as binProcessors from '../utils/processors.js';

class CommandAdd extends CommandPolykey {
constructor(...args: ConstructorParameters<typeof CommandPolykey>) {
super(...args);
this.name('connections');
this.description('list all active node connections');
this.addOption(binOptions.nodeId);
this.addOption(binOptions.clientHost);
this.addOption(binOptions.clientPort);
this.action(async (options) => {
const { default: PolykeyClient } = await import(
'polykey/PolykeyClient.js'
Expand Down