This commit is contained in:
Frostebite
2025-12-04 22:32:47 +00:00
parent 1eca7bb6b9
commit 945dec774c
8 changed files with 388 additions and 65 deletions

16
types/shell-quote.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
declare module 'shell-quote' {
/**
* Quote an array of strings to be safe to use as shell arguments.
* @param args - Array of strings to quote
* @returns A properly escaped string for shell usage
*/
export function quote(args: string[]): string;
/**
* Parse a shell command string into an array of arguments.
* @param cmd - The command string to parse
* @returns Array of parsed arguments
*/
export function parse(cmd: string): string[];
}