MCPcopy Create free account
hub / github.com/hey-api/hey-api / isEnvironment

Function isEnvironment

packages/shared/src/cli.ts:44–46  ·  view source on GitHub ↗
(value: 'development')

Source from the content-addressed store, hash-verified

42 * Checks the current environment based on the HEYAPI_CODEGEN_ENV environment variable.
43 */
44export function isEnvironment(value: 'development'): boolean {
45 return process.env.HEYAPI_CODEGEN_ENV === value;
46}
47
48// TODO: show ascii logo only in `--help` and `--version` commands
49export function printCliIntro(initialDir: string, showLogo: boolean = false): void {

Callers 8

cli.test.tsFile · 0.90
index.tsFile · 0.90
getClientBundlePathsFunction · 0.90
replaceImportsFunction · 0.90
index.tsFile · 0.90
getClientBundlePathsFunction · 0.90
replaceImportsFunction · 0.90
printCliIntroFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected