diff --git a/striker-ui-api/src/lib/shell.ts b/striker-ui-api/src/lib/shell.ts index 5529bbed..ffff8a7c 100644 --- a/striker-ui-api/src/lib/shell.ts +++ b/striker-ui-api/src/lib/shell.ts @@ -58,5 +58,7 @@ export const stderr = (message: string) => print(message, { stream: 'stderr' }); export const stdout = (message: string) => print(message); -export const stdoutVar = (variable: { [name: string]: unknown }) => - print(`Variables: ${JSON.stringify(variable, null, 2)}`); +export const stdoutVar = (variable: unknown, label = 'Variables: ') => + print(`${label}${JSON.stringify(variable, null, 2)}`); + +export const uuid = () => uuidgen('--random').trim();