Skip to main content
Version: v0.0.2

Function: redactCommand()

redactCommand(args): RunResult

Run the redact / deid command.

Parameters

args

string[]

The arguments after the redact/deid subcommand token.

Returns

RunResult

A RunResult. While @cosyte/deid is unavailable: empty stdout, a value-free CLI_NOT_IMPLEMENTED diagnostic on stderr, and exit EX_UNAVAILABLE (69). A malformed invocation (an unknown flag) is a usage error (exit 2). The input is never read.

Example

import { redactCommand } from "@cosyte/cli";

const r = redactCommand(["message.hl7"]);
r.exit; // => 69