MCPcopy Create free account
hub / github.com/Kong/httpsnippet / getArg

Function getArg

src/targets/shell/curl/client.ts:41–50  ·  view source on GitHub ↗
(short: boolean)

Source from the content-addressed store, hash-verified

39} as const;
40
41const getArg = (short: boolean) => (longName: keyof typeof params) => {
42 if (short) {
43 const shortName = params[longName];
44 if (!shortName) {
45 return '';
46 }
47 return `-${shortName}`;
48 }
49 return `--${longName}`;
50};
51
52export const curl: Client<CurlOptions> = {
53 info: {

Callers 1

client.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…