Skip to content

Commit 9180ec4

Browse files
committed
fix: #371
Every command includes options for `nodeId`, `clientHost`, and `clientPort`, but somehow `CommandConnections.ts` was missed, which caused this issue. Adding the options has resolved this.
1 parent 9ae7ac1 commit 9180ec4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/nodes/CommandConnections.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ import type PolykeyClient from 'polykey/PolykeyClient.js';
22
import type { NodeConnectionMessage } from 'polykey/client/types.js';
33
import CommandPolykey from '../CommandPolykey.js';
44
import * as binUtils from '../utils/utils.js';
5+
import * as binOptions from '../utils/options.js';
56
import * as binProcessors from '../utils/processors.js';
67

78
class CommandAdd extends CommandPolykey {
89
constructor(...args: ConstructorParameters<typeof CommandPolykey>) {
910
super(...args);
1011
this.name('connections');
1112
this.description('list all active node connections');
13+
this.addOption(binOptions.nodeId);
14+
this.addOption(binOptions.clientHost);
15+
this.addOption(binOptions.clientPort);
1216
this.action(async (options) => {
1317
const { default: PolykeyClient } = await import(
1418
'polykey/PolykeyClient.js'

0 commit comments

Comments
 (0)