MCPcopy Index your code
hub / github.com/codegowhere/react-inject-env / formatEnvToCliString

Function formatEnvToCliString

src/utils/Format.ts:3–9  ·  view source on GitHub ↗
(env: Record<string, string>)

Source from the content-addressed store, hash-verified

1import { Cfg } from '../app/Config'
2
3export function formatEnvToCliString(env: Record<string, string>): string {
4 let envString = ''
5 Object.keys(env).forEach(key => {
6 envString += `${key}=${Cfg.PLACEHOLDER_2}${key} `
7 })
8 return envString
9}
10
11export function formatEnvCommand(env: Record<string, string>, command: string): string {
12 return `${formatEnvToCliString(env)} ${command}`

Callers 2

onExecuteMethod · 0.90
formatEnvCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected