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

Function setInput

src/io.ts:76–79  ·  view source on GitHub ↗
(input: input, value: string | undefined)

Source from the content-addressed store, hash-verified

74
75export async function checkInputs() {
76 function setInput(input: input, value: string | undefined) {
77 if (value) return (process.env[`INPUT_${input.toUpperCase()}`] = value);
78 else return delete process.env[`INPUT_${input.toUpperCase()}`];
79 }
80 function setDefault(input: input, value: string) {
81 if (!getInput(input)) setInput(input, value);
82 return getInput(input);

Callers 1

setDefaultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected