27 lines
480 B
PowerShell
27 lines
480 B
PowerShell
param(
|
|
[ValidateSet("app", "web", "db", "embeddings", "all")]
|
|
[string]$Service = "all",
|
|
[switch]$Follow
|
|
)
|
|
|
|
. "$PSScriptRoot\lib\common.ps1"
|
|
|
|
$serviceName = switch ($Service) {
|
|
"app" { "cortex-app" }
|
|
"web" { "cortex-web" }
|
|
"db" { "cortex-db" }
|
|
"embeddings" { "cortex-embeddings" }
|
|
default { $null }
|
|
}
|
|
|
|
$args = @("logs", "--tail", "200")
|
|
if ($Follow) {
|
|
$args += "-f"
|
|
}
|
|
|
|
if ($serviceName) {
|
|
$args += $serviceName
|
|
}
|
|
|
|
Invoke-CortexCompose @args
|