Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:51:52 +08:00
commit 7886816c48
15 changed files with 1327 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# Script: get-content.ps1
# Purpose: Helper script for spec-workflow agents to load template and spec files (Windows)
# Usage: get-content.ps1 "C:\path\to\file.md"
param(
[Parameter(Mandatory=$true)]
[string]$FilePath
)
# Check if file exists
if (-not (Test-Path -Path $FilePath -PathType Leaf)) {
Write-Error "Error: File not found: $FilePath"
Write-Host "Please check the path and try again."
exit 1
}
# Output file content with header for clarity
Write-Host "=== Content of: $FilePath ===" -ForegroundColor Cyan
Write-Host ""
Get-Content -Path $FilePath
Write-Host ""
Write-Host "=== End of file ===" -ForegroundColor Cyan

View File

@@ -0,0 +1,28 @@
#!/bin/bash
# Script: get-content.sh
# Purpose: Helper script for spec-workflow agents to load template and spec files
# Usage: get-content.sh "/path/to/file.md"
# Check if file path argument is provided
if [ -z "$1" ]; then
echo "Error: No file path provided"
echo "Usage: $0 \"/path/to/file.md\""
exit 1
fi
FILE_PATH="$1"
# Check if file exists
if [ ! -f "$FILE_PATH" ]; then
echo "Error: File not found: $FILE_PATH"
echo "Please check the path and try again."
exit 1
fi
# Output file content with header for clarity
echo "=== Content of: $FILE_PATH ==="
echo ""
cat "$FILE_PATH"
echo ""
echo "=== End of file ==="