diff --git a/src/renderer/components/dock/logs/call-for-all-logs.injectable.ts b/src/renderer/components/dock/logs/call-for-all-logs.injectable.ts new file mode 100644 index 0000000000..6bd0d2af9e --- /dev/null +++ b/src/renderer/components/dock/logs/call-for-all-logs.injectable.ts @@ -0,0 +1,21 @@ +import { getInjectable } from "@ogre-tools/injectable"; +import callForLogsInjectable from "./call-for-logs.injectable"; + +const callForAllLogsInjectable = getInjectable({ + id: "call-for-all-logs", + + instantiate: (di) => { + const callForLogs = di.inject(callForLogsInjectable); + + return async (name: string, namespace: string) => { + const logs = await callForLogs({ + name, + namespace, + }); + + return logs; + }; + } +}); + +export default callForAllLogsInjectable; \ No newline at end of file