UNPKG

cmpstr-cli

Version:

Simple CLI wrapper for the CmpStr package to normalize and compare strings directly via terminal

23 lines (22 loc) 792 B
/** * @fileoverview * Search command for CmpStr CLI. * * Performs a filtered and normalized substring search across a list of * strings. Supports both synchronous and asynchronous processing. * * @author Paul Köhler (komed3) * @license MIT */ import { type Command } from 'commander'; /** * Performs a filtered and normalized substring search across the haystack. * * @async * @param {string} a - The string to search for (needle). * @param {string} b - The list of strings to search in (haystack). * @param {Record<string, any>} [opt] - Additional search options. * @param {Command} cmd - The Commander command instance. * @returns {Promise<void>} */ export declare function search(a: string, b: string, opt: Record<string, any> | undefined, cmd: Command): Promise<void>;