@k8ts/instruments
Version:
A collection of utilities and core components for k8ts.
28 lines • 881 B
TypeScript
import type { CliValue } from "./types";
export declare class CliFlag {
readonly key: string;
constructor(key: string);
str(joiner: string): string;
arr(): string[];
get isMissing(): boolean;
}
export type ValueTermJoiner = "=" | " ";
export declare class CliOptionValue {
private readonly key;
private readonly overrideTermJoiner;
private readonly value;
constructor(key: string, overrideTermJoiner: string | undefined, value: CliValue);
get isMissing(): boolean;
private _valueStr;
str(joiner: string): string;
arr(joiner: string): string[];
}
export declare class VerbatimTerm {
readonly value: string;
constructor(value: string);
str(joiner: string): string;
arr(): string[];
get isMissing(): boolean;
}
export type CliTerm = CliFlag | CliOptionValue | VerbatimTerm;
//# sourceMappingURL=cli-term.d.ts.map