-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo-cli.tape
More file actions
106 lines (91 loc) · 1.73 KB
/
demo-cli.tape
File metadata and controls
106 lines (91 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# VHS Demo Script - CLI Mode (Console + Markdown)
# Run with: vhs demo-cli.tape
Output demo-cli.gif
Set FontSize 15
Set Width 1400
Set Height 900
Set Theme "Dracula"
Set Padding 20
Set Framerate 24
Set PlaybackSpeed 0.7
Set WindowBar Colorful
Set BorderRadius 8
# Title
Type "# 📊 Sensor Metrics Analyzer - CLI Demo"
Enter
Sleep 1s
Type "clear"
Enter
Sleep 300ms
# Show help
Type "# First, let's see the available options"
Enter
Sleep 800ms
Type "./bin/metrics-analyzer analyze --help"
Enter
Sleep 4s
Type "clear"
Enter
Sleep 300ms
# Console output (default)
Type "# 🖥️ Console Output (default mode)"
Enter
Sleep 800ms
Type "./bin/metrics-analyzer analyze --rules ./automated-rules ../metrics.txt"
Enter
Sleep 5s
Type "clear"
Enter
Sleep 300ms
# Generate markdown report
Type "# 📝 Generate Markdown Report"
Enter
Sleep 800ms
Type "./bin/metrics-analyzer analyze --format markdown --rules ./automated-rules --output report.md ../metrics.txt"
Enter
Sleep 3s
# Show the generated file
Type "ls -la report.md"
Enter
Sleep 1.5s
# Display with bat
Type "# 👀 View the report with syntax highlighting"
Enter
Sleep 800ms
Type "bat report.md"
Enter
Sleep 6s
# Show just the summary section
Type "clear"
Enter
Sleep 300ms
Type "# 🔍 Quick peek at critical issues"
Enter
Sleep 800ms
Type "bat report.md --line-range 1:50"
Enter
Sleep 5s
# Validate rules
Type "clear"
Enter
Sleep 300ms
Type "# ✅ Validate rule files"
Enter
Sleep 800ms
Type "./bin/metrics-analyzer validate ./automated-rules"
Enter
Sleep 2s
# List rules
Type "# 📋 List all available rules"
Enter
Sleep 800ms
Type "./bin/metrics-analyzer list-rules ./automated-rules"
Enter
Sleep 4s
# Cleanup
Type "rm report.md"
Enter
Sleep 500ms
Type "# ✨ That's the CLI mode!"
Enter
Sleep 2s