MCPcopy
hub / github.com/shivammathur/setup-php / stepLog

Function stepLog

src/utils.ts:188–198  ·  view source on GitHub ↗
(message: string, os: string)

Source from the content-addressed store, hash-verified

186 * @param os
187 */
188export async function stepLog(message: string, os: string): Promise<string> {
189 switch (os) {
190 case 'win32':
191 return 'Step-Log "' + escapeForShell(message, os) + '"';
192 case 'linux':
193 case 'darwin':
194 return 'step_log "' + escapeForShell(message, os) + '"';
195 default:
196 return await log('Platform ' + os + ' is not supported', os, 'error');
197 }
198}
199
200/**
201 * Function to log a result

Callers

nothing calls this directly

Calls 2

escapeForShellFunction · 0.85
logFunction · 0.85

Tested by

no test coverage detected