Skip to content

Commit

Permalink
Updated draw-diagram.bat for Yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
SlavaVedernikov committed Oct 2, 2024
1 parent 87d2941 commit 66b0e67
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Samples/dotnet.eShop/draw-diagrams.bat
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@echo off
:: Possible values: TRUE, FALSE
if not defined redraw-all set "redraw-all=TRUE"
if not defined redraw-all set "redraw-all=FALSE"
:::::::::::::::::::::::::::::::

:: Possible values: CSharp, Yaml
if not defined aac-type set "aac-type=CSharp"
if not defined aac-type set "aac-type=Yaml"
::::::::::::::::::::::::::::::::

if not defined build-configuration set "build-configuration=Debug"
Expand All @@ -17,18 +17,13 @@ set "diagrams-dir=%aac-project-name%\Diagrams"
set "aac-reader-strategy=C4InterFlow.Automation.Readers.%aac-type%AaCReaderStrategy,C4InterFlow.Automation"

if %aac-type%==CSharp set "aac-input-paths=%aac-project-name%.dll"
if %aac-type%==Yaml set "aac-input-paths=%aac-project-name%\Yaml"
if %aac-type%==Yaml set "aac-input-paths=.\%aac-project-name%\Yaml"

call :NormalizePath %cli-project-path%
set "cli-project-path=%_NORMALIZED_PATH_%"
call :NormalizePath %cli-output-dir%
set "cli-output-dir=%_NORMALIZED_PATH_%"

if %aac-type%==Yaml (
call :NormalizePath %aac-input-paths%
set "aac-input-paths=%_NORMALIZED_PATH_%"
)

call :NormalizePath %diagrams-dir%
set "diagrams-dir=%_NORMALIZED_PATH_%"

Expand Down

0 comments on commit 66b0e67

Please sign in to comment.