Commit d90a2b4d authored by allen.wang's avatar allen.wang

feat:init

parent 89ec371c
param( param(
[string]$ConfigPath = "C:\Users\niuniu\.codex\vip-report\config.yaml", [string]$ConfigPath = "C:\Users\niuniu\.codex\vip-report\config.yaml",
[string]$Slides = "S10", [string]$Slides = "S09,S10",
[string]$ReportMonth = "", [string]$ReportMonth = "",
[int]$ReportYear = 0, [int]$ReportYear = 0,
[int]$CompareYear = 0, [int]$CompareYear = 0,
...@@ -40,10 +40,16 @@ if ($CompareYear -gt 0) { ...@@ -40,10 +40,16 @@ if ($CompareYear -gt 0) {
} }
python @pythonArgs python @pythonArgs
if ($LASTEXITCODE -ne 0) {
throw "sync_top_products_assets.py failed with exit code $LASTEXITCODE"
}
if ($Render) { if ($Render) {
powershell -ExecutionPolicy Bypass -File "$root\bin\vip-report-render.ps1" -TemplatePath "$TemplatePath" -OutputPath "$OutputPath" -OperationsPath "$opsPath" | Out-Null powershell -ExecutionPolicy Bypass -File "$root\bin\vip-report-render.ps1" -TemplatePath "$TemplatePath" -OutputPath "$OutputPath" -OperationsPath "$opsPath" | Out-Null
python "$root\scripts\compare_pptx.py" "$TemplatePath" "$OutputPath" --output "$CompareOutputPath" python "$root\scripts\compare_pptx.py" "$TemplatePath" "$OutputPath" --output "$CompareOutputPath"
if ($LASTEXITCODE -ne 0) {
throw "compare_pptx.py failed with exit code $LASTEXITCODE"
}
Write-Output $OutputPath Write-Output $OutputPath
Write-Output $CompareOutputPath Write-Output $CompareOutputPath
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment