Add gum-styled annotations and less paging to VHS demo tapes
Annotations use demo/note.sh (gum style with clear) wrapped in Hide/Show so only the styled box appears. Long output commands pipe through less with search to highlight key fields. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d19709dc1f
commit
e636ea323c
4 changed files with 140 additions and 23 deletions
|
|
@ -12,8 +12,11 @@ Set TypingSpeed 50ms
|
|||
Sleep 1s
|
||||
|
||||
# Desktop notification — success case
|
||||
Type "# Desktop notification on success/failure"
|
||||
Hide
|
||||
Type "./demo/note.sh 'Desktop notification on success'"
|
||||
Enter
|
||||
Sleep 500ms
|
||||
Show
|
||||
Sleep 1s
|
||||
Type "systab -t 'in 1 minute' -c 'echo success' -i"
|
||||
Sleep 500ms
|
||||
|
|
@ -21,14 +24,23 @@ Enter
|
|||
Sleep 2s
|
||||
|
||||
# Desktop notification — failure case
|
||||
Hide
|
||||
Type "./demo/note.sh 'Desktop notification on failure'"
|
||||
Enter
|
||||
Sleep 500ms
|
||||
Show
|
||||
Sleep 1s
|
||||
Type "systab -t 'in 1 minute' -c 'exit 1' -i"
|
||||
Sleep 500ms
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
||||
# Email notification
|
||||
Type "# Email notification via sendmail"
|
||||
Hide
|
||||
Type "./demo/note.sh 'Email notification via sendmail'"
|
||||
Enter
|
||||
Sleep 500ms
|
||||
Show
|
||||
Sleep 1s
|
||||
Type "systab -t 'in 1 minute' -c 'echo test' -m user@example.com"
|
||||
Sleep 500ms
|
||||
|
|
@ -36,8 +48,11 @@ Enter
|
|||
Sleep 2s
|
||||
|
||||
# Both notifications
|
||||
Type "# Both desktop and email"
|
||||
Hide
|
||||
Type "./demo/note.sh 'Both desktop and email notifications'"
|
||||
Enter
|
||||
Sleep 500ms
|
||||
Show
|
||||
Sleep 1s
|
||||
Type "systab -t 'every day at 9am' -c '/home/user/backup.sh' -i -m admin@example.com"
|
||||
Sleep 500ms
|
||||
|
|
@ -45,18 +60,37 @@ Enter
|
|||
Sleep 2s
|
||||
|
||||
# Show the generated service file to see ExecStopPost lines
|
||||
Type "# Inspect generated service file"
|
||||
Hide
|
||||
Type "./demo/note.sh 'Inspecting generated service file'"
|
||||
Enter
|
||||
Sleep 500ms
|
||||
Show
|
||||
Sleep 1s
|
||||
Type "cat ~/.config/systemd/user/systab_*.service | head -20"
|
||||
Type "cat ~/.config/systemd/user/systab_*.service | less"
|
||||
Sleep 500ms
|
||||
Enter
|
||||
Sleep 4s
|
||||
|
||||
# Check status
|
||||
Type "systab -S"
|
||||
Sleep 500ms
|
||||
Sleep 2s
|
||||
Type "/ExecStopPost"
|
||||
Enter
|
||||
Sleep 3s
|
||||
Type "q"
|
||||
Sleep 1s
|
||||
|
||||
# Check status
|
||||
Hide
|
||||
Type "./demo/note.sh 'Checking status of all jobs'"
|
||||
Enter
|
||||
Sleep 500ms
|
||||
Show
|
||||
Sleep 1s
|
||||
Type "systab -S | less"
|
||||
Sleep 500ms
|
||||
Enter
|
||||
Sleep 2s
|
||||
Type "/Job:"
|
||||
Enter
|
||||
Sleep 3s
|
||||
Type "q"
|
||||
Sleep 1s
|
||||
|
||||
Sleep 2s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue