refactor: enhance getContainerLogs function to support app name or ID

- Updated the `getContainerLogs` function to accept either an application name or container ID, improving flexibility in log retrieval.
- Simplified the command execution logic by consolidating the remote and local execution paths.
- Added a new parameter to directly use container IDs, streamlining the process for users.

These changes enhance the usability of the logging feature, allowing for more efficient access to container logs.
This commit is contained in:
Mauricio Siu
2026-04-09 11:41:01 -06:00
parent 7c10610a5a
commit b8db120432
2 changed files with 28 additions and 45 deletions

View File

@@ -1168,6 +1168,7 @@ export const composeRouter = createTRPCRouter({
input.since,
input.search,
compose.serverId,
true,
);
}),
});