From 7c657dfbd589d7fc9ec0c82bc6a00dc3f018e736 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 12 Apr 2023 23:33:03 -0400 Subject: [PATCH] fix(striker-ui-api): add uuidgen to shell --- striker-ui-api/src/lib/consts/SERVER_PATHS.ts | 1 + striker-ui-api/src/lib/shell.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/striker-ui-api/src/lib/consts/SERVER_PATHS.ts b/striker-ui-api/src/lib/consts/SERVER_PATHS.ts index d24140d6..f6428321 100644 --- a/striker-ui-api/src/lib/consts/SERVER_PATHS.ts +++ b/striker-ui-api/src/lib/consts/SERVER_PATHS.ts @@ -15,6 +15,7 @@ const EMPTY_SERVER_PATHS: ServerPath = { psql: {}, rm: {}, sed: {}, + uuidgen: {}, }, sbin: { 'anvil-access-module': {}, diff --git a/striker-ui-api/src/lib/shell.ts b/striker-ui-api/src/lib/shell.ts index 36947da1..e3e5a73b 100644 --- a/striker-ui-api/src/lib/shell.ts +++ b/striker-ui-api/src/lib/shell.ts @@ -41,6 +41,9 @@ export const openssl = (...args: string[]) => export const rm = (...args: string[]) => systemCall(SERVER_PATHS.usr.bin.rm.self, args); +export const uuidgen = (...args: string[]) => + systemCall(SERVER_PATHS.usr.bin.uuidgen.self, args); + export const stderr = (message: string) => print(message, { stream: 'stderr' }); export const stdout = (message: string) => print(message);