Loading...
Loading...
Compare original and translation side by side
$ErrorActionPreference = 'Stop'Try/Catch$ErrorActionPreference = 'Stop'Try/Catch[PSCustomObject]-Output JSON[PSCustomObject]-Output JSONActiveDirectoryJoin-Path[IO.Path]::Combine/\ActiveDirectoryJoin-Path[IO.Path]::Combine/\Microsoft.PowerShell.SecretManagementInvoke-ExpressionMicrosoft.PowerShell.SecretManagementInvoke-Expression.psm1.Tests.ps1.psm1.Tests.ps1$ErrorActionPreference = 'Stop'
try {
$files = Get-ChildItem -Path $target -Filter *.json
foreach ($file in $files) {
$data = Get-Content -Path $file.FullName | ConvertFrom-Json
# Process $data object
}
} catch {
Write-Error "Failed to process files: $($_.Exception.Message)"
}$ErrorActionPreference = 'Stop'
try {
$files = Get-ChildItem -Path $target -Filter *.json
foreach ($file in $files) {
$data = Get-Content -Path $file.FullName | ConvertFrom-Json
# Process $data object
}
} catch {
Write-Error "Failed to process files: $($_.Exception.Message)"
}Get-SecretGet-Secretcat .claude/context/memory/learnings.mdASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
cat .claude/context/memory/learnings.md假设会被中断:你的上下文可能会重置。如果未存入记忆,就视为未发生。