Refresh demo tapes: retire editmode, update commands, improve quickstart
- Remove editmode.tape; quickstart now takes the editmode.png screenshot and demonstrates adding a new job in edit mode (new:n=diskcheck_home) - healthcheck_home uses 'uptime', monitor_home uses 'ping -c 1 localhost' - all-features one-time reminder gains -i (desktop notification example) - 19 tape commands total (was 24) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
530a2162bf
commit
b72a95f4ed
4 changed files with 20 additions and 59 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"label": "tests",
|
"label": "tests",
|
||||||
"message": "136 passed",
|
"message": "131 passed",
|
||||||
"color": "brightgreen"
|
"color": "brightgreen"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,18 +27,18 @@ Enter
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Show
|
Show
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
Type "systab -t 'every 5 minutes' -n healthcheck_home -c 'echo health check OK'"
|
Type "systab -t 'every 5 minutes' -n healthcheck_home -c 'uptime'"
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Enter
|
Enter
|
||||||
Sleep 2s
|
Sleep 2s
|
||||||
|
|
||||||
Hide
|
Hide
|
||||||
Type "./demo/note.sh 'One-time reminder in 30 minutes'"
|
Type "./demo/note.sh 'One-time reminder with desktop notification'"
|
||||||
Enter
|
Enter
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Show
|
Show
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
Type "systab -t 'in 30 minutes' -c 'echo reminder: meeting soon'"
|
Type "systab -t 'in 30 minutes' -c 'echo reminder: meeting soon' -i"
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Enter
|
Enter
|
||||||
Sleep 2s
|
Sleep 2s
|
||||||
|
|
@ -49,7 +49,7 @@ Enter
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Show
|
Show
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
Type "systab -s -n monitor_home -c 'sleep 3600'"
|
Type "systab -s -n monitor_home -c 'ping -c 1 localhost'"
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Enter
|
Enter
|
||||||
Sleep 2s
|
Sleep 2s
|
||||||
|
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
# systab — Edit Mode Screenshot
|
|
||||||
# Creates representative jobs, opens edit mode, captures a screenshot.
|
|
||||||
|
|
||||||
Output demo/editmode.gif
|
|
||||||
Set Shell bash
|
|
||||||
Set Width 1200
|
|
||||||
Set Height 500
|
|
||||||
Set FontSize 16
|
|
||||||
|
|
||||||
Set TypingSpeed 0
|
|
||||||
|
|
||||||
# Clean up any pre-existing jobs with names used in this demo
|
|
||||||
Hide
|
|
||||||
Type "for n in healthcheck_home backup_home syncthing_home cleanup_home; do systab -X \"$n\" 2>/dev/null || true; done"
|
|
||||||
Enter
|
|
||||||
Sleep 1s
|
|
||||||
|
|
||||||
# Create representative jobs silently
|
|
||||||
Type "systab -t 'every 5 minutes' -n healthcheck_home -c 'curl -s https://example.com/health' -i"
|
|
||||||
Enter
|
|
||||||
Sleep 2s
|
|
||||||
Type "systab -t 'daily' -n backup_home -c '/home/user/backup.sh' -i"
|
|
||||||
Enter
|
|
||||||
Sleep 2s
|
|
||||||
Type "systab -s -n syncthing_home -c '/usr/bin/syncthing --no-browser'"
|
|
||||||
Enter
|
|
||||||
Sleep 2s
|
|
||||||
Type "systab -t 'weekly' -n cleanup_home -c 'find /tmp -mtime +7 -delete'"
|
|
||||||
Enter
|
|
||||||
Sleep 2s
|
|
||||||
Show
|
|
||||||
|
|
||||||
Type "EDITOR=nano systab -e"
|
|
||||||
Enter
|
|
||||||
Sleep 3s
|
|
||||||
|
|
||||||
Screenshot demo/editmode.png
|
|
||||||
|
|
||||||
Sleep 1s
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# systab — Quick Start
|
# systab — Quick Start
|
||||||
# Create a timer, create a service, then disable the service via edit mode.
|
# Create a timer, create a service, then use edit mode to add a new job.
|
||||||
|
|
||||||
Output demo/quickstart.gif
|
Output demo/quickstart.gif
|
||||||
Set Shell bash
|
Set Shell bash
|
||||||
|
|
@ -13,7 +13,7 @@ Sleep 1s
|
||||||
|
|
||||||
# Clean up any pre-existing jobs with names used in this demo
|
# Clean up any pre-existing jobs with names used in this demo
|
||||||
Hide
|
Hide
|
||||||
Type "for n in healthcheck_home monitor_home; do systab -X \"$n\" 2>/dev/null || true; done"
|
Type "for n in healthcheck_home monitor_home diskcheck_home; do systab -X \"$n\" 2>/dev/null || true; done"
|
||||||
Enter
|
Enter
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
Show
|
Show
|
||||||
|
|
@ -25,7 +25,7 @@ Enter
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Show
|
Show
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
Type "systab -t 'every 5 minutes' -n healthcheck_home -c 'echo health check OK'"
|
Type "systab -t 'every 5 minutes' -n healthcheck_home -c 'uptime'"
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Enter
|
Enter
|
||||||
Sleep 2s
|
Sleep 2s
|
||||||
|
|
@ -37,7 +37,7 @@ Enter
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Show
|
Show
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
Type "systab -s -n monitor_home -c 'sleep 3600'"
|
Type "systab -s -n monitor_home -c 'ping -c 1 localhost'"
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Enter
|
Enter
|
||||||
Sleep 2s
|
Sleep 2s
|
||||||
|
|
@ -54,9 +54,9 @@ Sleep 500ms
|
||||||
Enter
|
Enter
|
||||||
Sleep 2s
|
Sleep 2s
|
||||||
|
|
||||||
# Open edit mode and disable the service by commenting out its line
|
# Open edit mode: screenshot then add a new job
|
||||||
Hide
|
Hide
|
||||||
Type "./demo/note.sh 'Edit mode — disable the monitor service'"
|
Type "./demo/note.sh 'Edit mode — add a new job'"
|
||||||
Enter
|
Enter
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Show
|
Show
|
||||||
|
|
@ -66,15 +66,15 @@ Sleep 500ms
|
||||||
Enter
|
Enter
|
||||||
Sleep 3s
|
Sleep 3s
|
||||||
|
|
||||||
# In nano: search for "monitor_home", jump to start of that line, prefix with '#'
|
Screenshot demo/editmode.png
|
||||||
Ctrl+W
|
|
||||||
|
# Navigate to end of file in nano and add a new job
|
||||||
|
Ctrl+V
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Type "monitor_home"
|
Down 5
|
||||||
|
Sleep 500ms
|
||||||
|
Type "new:n=diskcheck_home | daily | df -h"
|
||||||
Enter
|
Enter
|
||||||
Sleep 1s
|
|
||||||
Ctrl+A
|
|
||||||
Sleep 500ms
|
|
||||||
Type "#"
|
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
|
|
||||||
Ctrl+O
|
Ctrl+O
|
||||||
|
|
@ -84,9 +84,9 @@ Sleep 500ms
|
||||||
Ctrl+X
|
Ctrl+X
|
||||||
Sleep 3s
|
Sleep 3s
|
||||||
|
|
||||||
# Verify the service is now disabled
|
# Show updated status
|
||||||
Hide
|
Hide
|
||||||
Type "./demo/note.sh 'Monitor service is now disabled'"
|
Type "./demo/note.sh 'Status after edit — new job added'"
|
||||||
Enter
|
Enter
|
||||||
Sleep 500ms
|
Sleep 500ms
|
||||||
Show
|
Show
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue