@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
26 lines • 1.26 kB
TypeScript
import { type ParsedArgs } from '../../../../commands/spec/parser.ts';
import type { RedirectResult } from '../../../../context/session_context.ts';
import { PathSpec } from '../../../../types.ts';
export declare const GETFATTR_USAGE: string;
export declare const SETFATTR_USAGE: string;
/**
* The usage error attr prints for a line getopt refused, if any: getopt's
* own line (`invalid option -- 'Z'`, `option requires an argument --
* 'n'`) and then attr's usage block, exit 2. Mirrors Python's
* `attr_usage_refusal`.
*/
export declare function attrUsageRefusal(cmd: string, parsed: ParsedArgs, usage: string): RedirectResult | null;
/**
* The phrase attr prints for a failed attribute call: "No such
* attribute" for one that is not set, whatever the platform calls it,
* the C library's wording for any other condition, and a service's own
* words for its refusal. Mirrors Python's `attr_error`.
*/
export declare function attrError(err: unknown): string;
/**
* The line's file operands, resolved against the session's cwd, each
* keeping the spelling it was typed with for the header and messages.
* Mirrors Python's `attr_operands`.
*/
export declare function attrOperands(parsed: ParsedArgs): PathSpec[];
//# sourceMappingURL=xattr.d.ts.map