fix(striker-ui-api): add stdoutVar()

main
Tsu-ba-me 2 years ago
parent 2e5edfdcf0
commit 0a3d36c340
  1. 7
      striker-ui-api/src/lib/shell.ts

@ -38,6 +38,9 @@ export const mkfifo = (...args: string[]) =>
export const rm = (...args: string[]) => export const rm = (...args: string[]) =>
systemCall(SERVER_PATHS.usr.bin.rm.self, args); systemCall(SERVER_PATHS.usr.bin.rm.self, args);
export const stderr = (message: string) => print(message); export const stderr = (message: string) => print(message, { stream: 'stderr' });
export const stdout = (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)}`);

Loading…
Cancel
Save