mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:30:48 +08:00
Super/fallback can toggle view-all (default on); admin/user stay own-only while still seeing unowned system sessions. Add restore/prune helpers so empty-shell cleanup is explicit and recoverable.
9 lines
396 B
PowerShell
9 lines
396 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$w = Get-Content 'C:\Users\zhout\.dsh\storages\workspace.json' -Raw | ConvertFrom-Json
|
|
foreach ($prop in $w.tables.workspaces.PSObject.Properties) {
|
|
$row = $prop.Value
|
|
Write-Output ("id={0}" -f $prop.Name)
|
|
Write-Output (" path={0}" -f $row.path)
|
|
Write-Output (" title={0}" -f $row.title)
|
|
Write-Output (" sessionIds={0}" -f @($row.sessionIds).Count)
|
|
}
|