MCPcopy Create free account
hub / github.com/cyprieng/github-breakout / getInput

Function getInput

src/cli.ts:24–27  ·  view source on GitHub ↗

* Get an input value from environment variables or from GitHub Actions inputs * @param name - The name of the input variable. * @returns The input value as a string or undefined if not found.

(name: string)

Source from the content-addressed store, hash-verified

22 * @returns The input value as a string or undefined if not found.
23 */
24function getInput(name: string): string | undefined {
25 const envName = `INPUT_${name.replace(/-/g, "_").toUpperCase()}`;
26 return process.env[envName] || process.env[name] || undefined;
27}
28
29/**
30 * Parse command-line arguments into an object.

Callers 1

cli.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected