Rename pause/resume to disable/enable to align with systemd terminology
-P/-R flags become -D/-E, -E (edit) becomes -e. Functions renamed to disable_job_by_id/enable_job_by_id. Output messages, docs, tests, and demo tapes updated accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e636ea323c
commit
8319924139
6 changed files with 65 additions and 65 deletions
|
|
@ -32,7 +32,7 @@ Enter
|
|||
Sleep 500ms
|
||||
Show
|
||||
Sleep 1s
|
||||
Type "EDITOR=nano systab -E"
|
||||
Type "EDITOR=nano systab -e"
|
||||
Sleep 500ms
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
|
@ -83,7 +83,7 @@ Enter
|
|||
Sleep 500ms
|
||||
Show
|
||||
Sleep 1s
|
||||
Type "EDITOR=nano systab -E"
|
||||
Type "EDITOR=nano systab -e"
|
||||
Sleep 500ms
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
|
|
|||
|
|
@ -69,21 +69,21 @@ Sleep 3s
|
|||
Type "q"
|
||||
Sleep 1s
|
||||
|
||||
# Pause a job (uses the first job ID from status)
|
||||
# Disable a job (uses the first job ID from status)
|
||||
Hide
|
||||
Type "./demo/note.sh 'Pausing a job'"
|
||||
Type "./demo/note.sh 'Disabling a job'"
|
||||
Enter
|
||||
Sleep 500ms
|
||||
Show
|
||||
Sleep 1s
|
||||
Type "systab -P $(systab -S 2>/dev/null | grep -m1 'Job:' | awk '{print $2}')"
|
||||
Type "systab -D $(systab -S 2>/dev/null | grep -m1 'Job:' | awk '{print $2}')"
|
||||
Sleep 500ms
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
||||
# Show it's paused
|
||||
# Show it's disabled
|
||||
Hide
|
||||
Type "./demo/note.sh 'Verifying job is paused'"
|
||||
Type "./demo/note.sh 'Verifying job is disabled'"
|
||||
Enter
|
||||
Sleep 500ms
|
||||
Show
|
||||
|
|
@ -98,14 +98,14 @@ Sleep 3s
|
|||
Type "q"
|
||||
Sleep 1s
|
||||
|
||||
# Resume it
|
||||
# Enable it
|
||||
Hide
|
||||
Type "./demo/note.sh 'Resuming the paused job'"
|
||||
Type "./demo/note.sh 'Enabling the disabled job'"
|
||||
Enter
|
||||
Sleep 500ms
|
||||
Show
|
||||
Sleep 1s
|
||||
Type "systab -R $(systab -S 2>/dev/null | grep -m1 'Disabled' -B4 | grep 'Job:' | awk '{print $2}')"
|
||||
Type "systab -E $(systab -S 2>/dev/null | grep -m1 'Disabled' -B4 | grep 'Job:' | awk '{print $2}')"
|
||||
Sleep 500ms
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue