Function processClientOptions

  • Process client options Options are used for connecting PolykeyClient Order of operations are:

    1. Reads --node-id, --client-host, --client-port
    2. Reads PK_NODE_ID, PK_CLIENT_HOST, PK_CLIENT_PORT
    3. Command-specific defaults
    4. If no options are set, reads Status Step 2 is done during option construction Step 3 is done in CommandPolykey classes

    Parameters

    • nodePath: string
    • Optional nodeId: NodeId
    • Optional clientHost: string
    • Optional clientPort: number
    • fs: any = ...
    • logger: Logger = ...

    Returns Promise<{
        clientHost: string;
        clientPort: number;
        nodeId: NodeId;
    }>

Generated using TypeDoc