lix-website/themes/lix/assets/bootstrap/node_modules/@yarnpkg/parsers/lib/shell.d.ts
2024-04-26 22:49:34 -06:00

20 lines
1.4 KiB
TypeScript

import { Argument, ArgumentSegment, ArithmeticExpression, Command, CommandChain, CommandChainThen, CommandLine, CommandLineThen, EnvSegment, RedirectArgument, ShellLine, ValueArgument } from './grammars/shell';
export declare function parseShell(source: string, options?: {
isGlobPattern: (arg: string) => boolean;
}): ShellLine;
export declare function stringifyShellLine(shellLine: ShellLine, { endSemicolon }?: {
endSemicolon?: boolean;
}): string;
export declare function stringifyCommandLine(commandLine: CommandLine): string;
export declare function stringifyCommandLineThen(commandLineThen: CommandLineThen): string;
export declare function stringifyCommandChain(commandChain: CommandChain): string;
export declare function stringifyCommandChainThen(commandChainThen: CommandChainThen): string;
export declare function stringifyCommand(command: Command): string;
export declare function stringifyEnvSegment(envSegment: EnvSegment): string;
export declare function stringifyArgument(argument: Argument): string;
export declare function stringifyRedirectArgument(argument: RedirectArgument): string;
export declare function stringifyValueArgument(argument: ValueArgument): string;
export declare function stringifyArgumentSegment(argumentSegment: ArgumentSegment): string;
export declare function stringifyArithmeticExpression(argument: ArithmeticExpression): string;
export { stringifyShellLine as stringifyShell };