mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-04 19:58:14 +08:00
Add AsciiCast demos for docs
This commit is contained in:

committed by
Patrik Svensson

parent
69fdae70c0
commit
46abadaccb
13
resources/scripts/Generate-Samples.ps1
Normal file
13
resources/scripts/Generate-Samples.ps1
Normal file
@ -0,0 +1,13 @@
|
||||
# first arg is either the name of a single sample you want to run or leave
|
||||
# blank if you want to run them all. the samples aren't going to run at the same
|
||||
# speed each time so if you run all of them you'll have everything as a change
|
||||
# for your commit so use this sparingly.
|
||||
|
||||
# Generate the files
|
||||
Push-Location Generator
|
||||
dotnet run -- samples -o "../../../docs/input/assets/casts" $args[0]
|
||||
if(!$?) {
|
||||
Pop-Location
|
||||
Throw "An error occured when generating code."
|
||||
}
|
||||
Pop-Location
|
Reference in New Issue
Block a user