MCPcopy Create free account
hub / github.com/EndBug/add-and-commit / matchGitArgs

Function matchGitArgs

src/util.ts:63–69  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

61 * @returns An array, if there's no match it'll be empty
62 */
63export function matchGitArgs(string: string) {
64 const parsed = parseArgsStringToArgv(string);
65 core.debug(`Git args parsed:
66 - Original: ${string}
67 - Parsed: ${JSON.stringify(parsed)}`);
68 return parsed;
69}
70
71/**
72 * Tries to parse a YAML sequence (which can be a JSON array).

Callers 3

main.tsFile · 0.90
addFunction · 0.90
removeFunction · 0.90

Calls 2

parseArgsStringToArgvFunction · 0.85
stringifyMethod · 0.80

Tested by

no test coverage detected