diff --git a/badges/tests.json b/badges/tests.json index b392426..b571791 100644 --- a/badges/tests.json +++ b/badges/tests.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, "label": "tests", - "message": "136 passed", + "message": "131 passed", "color": "brightgreen" } diff --git a/demo/all-features.tape b/demo/all-features.tape index 2cee057..5cf1756 100644 --- a/demo/all-features.tape +++ b/demo/all-features.tape @@ -27,18 +27,18 @@ Enter Sleep 500ms Show 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 Enter Sleep 2s Hide -Type "./demo/note.sh 'One-time reminder in 30 minutes'" +Type "./demo/note.sh 'One-time reminder with desktop notification'" Enter Sleep 500ms Show 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 Enter Sleep 2s @@ -49,7 +49,7 @@ Enter Sleep 500ms Show Sleep 1s -Type "systab -s -n monitor_home -c 'sleep 3600'" +Type "systab -s -n monitor_home -c 'ping -c 1 localhost'" Sleep 500ms Enter Sleep 2s diff --git a/demo/editmode.tape b/demo/editmode.tape deleted file mode 100644 index 91aff1a..0000000 --- a/demo/editmode.tape +++ /dev/null @@ -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 diff --git a/demo/quickstart.tape b/demo/quickstart.tape index 8aed734..779277a 100644 --- a/demo/quickstart.tape +++ b/demo/quickstart.tape @@ -1,5 +1,5 @@ # 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 Set Shell bash @@ -13,7 +13,7 @@ Sleep 1s # Clean up any pre-existing jobs with names used in this demo 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 Sleep 1s Show @@ -25,7 +25,7 @@ Enter Sleep 500ms Show 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 Enter Sleep 2s @@ -37,7 +37,7 @@ Enter Sleep 500ms Show Sleep 1s -Type "systab -s -n monitor_home -c 'sleep 3600'" +Type "systab -s -n monitor_home -c 'ping -c 1 localhost'" Sleep 500ms Enter Sleep 2s @@ -54,9 +54,9 @@ Sleep 500ms Enter Sleep 2s -# Open edit mode and disable the service by commenting out its line +# Open edit mode: screenshot then add a new job Hide -Type "./demo/note.sh 'Edit mode — disable the monitor service'" +Type "./demo/note.sh 'Edit mode — add a new job'" Enter Sleep 500ms Show @@ -66,15 +66,15 @@ Sleep 500ms Enter Sleep 3s -# In nano: search for "monitor_home", jump to start of that line, prefix with '#' -Ctrl+W +Screenshot demo/editmode.png + +# Navigate to end of file in nano and add a new job +Ctrl+V Sleep 500ms -Type "monitor_home" +Down 5 +Sleep 500ms +Type "new:n=diskcheck_home | daily | df -h" Enter -Sleep 1s -Ctrl+A -Sleep 500ms -Type "#" Sleep 500ms Ctrl+O @@ -84,9 +84,9 @@ Sleep 500ms Ctrl+X Sleep 3s -# Verify the service is now disabled +# Show updated status Hide -Type "./demo/note.sh 'Monitor service is now disabled'" +Type "./demo/note.sh 'Status after edit — new job added'" Enter Sleep 500ms Show