dpkit
Version:
Fast TypeScript data management framework built on top of the Data Package standard and Polars DataFrames
13 lines (9 loc) • 336 B
text/typescript
import { Option } from "commander"
export const hashType = new Option("--hash-type <type>", "hash type")
.choices(["md5", "sha1", "sha256", "sha512"])
.default("sha256")
export const bytes = new Option(
"--bytes <bytes>",
"expected file size in bytes",
)
export const hash = new Option("--hash <hash>", "expected file hash")