Skip to content

Commit e66fc12

Browse files
committed
Add vhs tape file to test it
1 parent 6de8a24 commit e66fc12

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

samples/AdvancedApp/AdvancedApp.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
<RootNamespace>AdvancedApp</RootNamespace>
1212
</PropertyGroup>
1313

14+
<ItemGroup>
15+
<None Remove="multi-demo.tape" />
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<Content Include="multi-demo.tape">
20+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
21+
</Content>
22+
</ItemGroup>
23+
1424
<ItemGroup>
1525
<ProjectReference Include="..\..\src\XenoAtom.CommandLine\XenoAtom.CommandLine.csproj" />
1626
<ProjectReference Include="..\..\src\XenoAtom.CommandLine.Terminal\XenoAtom.CommandLine.Terminal.csproj" />
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# To run this script on Windows you need to install:
2+
# winget install charmbracelet.vhs
3+
# winget install "FFmpeg (Essentials Build)"
4+
# winget install tsl0922.ttyd
5+
6+
# Output format (pick one)
7+
Output multi-demo.gif
8+
9+
# Use PowerShell (Windows)
10+
Set Shell pwsh
11+
12+
# Visuals (adjust to taste)
13+
Set FontSize 20
14+
Set Width 980
15+
Set Height 980
16+
#Set TypingSpeed 90ms
17+
#Set WaitTimeout 10s
18+
19+
# 1) .\multi.exe --help
20+
Type "./multi.exe --help"
21+
Enter
22+
Sleep 1s
23+
Type "clear"
24+
Enter
25+
26+
# 2) --markup --help
27+
Type "./multi.exe --markup --help"
28+
Enter
29+
Sleep 1s
30+
Type "clear"
31+
Enter
32+
33+
# 3) --visual --help
34+
Type "./multi.exe --visual --help"
35+
Enter
36+
Sleep 1s
37+
Type "clear"
38+
Enter
39+
40+
# 4) hello ...
41+
Type "./multi.exe hello --name Test --age 10 file1.txt file2.txt"
42+
Enter
43+
Sleep 500ms
44+
Type "clear"
45+
Enter
46+
47+
# 5) invalid options (no clear between them, per your script)
48+
Type "./multi.exe --invalid-option"
49+
Enter
50+
Type "./multi.exe --markup --invalid-option"
51+
Enter
52+
Type "./multi.exe --visual --invalid-option"
53+
Enter
54+
Sleep 500ms

0 commit comments

Comments
 (0)