fix(striker-ui-api): add uuidgen to shell

main
Tsu-ba-me 2 years ago
parent f911a335ac
commit 7c657dfbd5
  1. 1
      striker-ui-api/src/lib/consts/SERVER_PATHS.ts
  2. 3
      striker-ui-api/src/lib/shell.ts

@ -15,6 +15,7 @@ const EMPTY_SERVER_PATHS: ServerPath = {
psql: {}, psql: {},
rm: {}, rm: {},
sed: {}, sed: {},
uuidgen: {},
}, },
sbin: { sbin: {
'anvil-access-module': {}, 'anvil-access-module': {},

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

Loading…
Cancel
Save