Rename sleep/wake to freeze/unfreeze across all 42 implementations

API endpoint changes:
- /services/{id}/sleep → /services/{id}/freeze
- /services/{id}/wake → /services/{id}/unfreeze

CLI flag changes:
- --sleep → --freeze
- --wake → --unfreeze

Message changes:
- 'Service sleeping' → 'Service frozen'
- 'Service waking' → 'Service unfreezing'
This commit is contained in:
russell@unturf.com 2026-01-15 11:52:15 -05:00
parent bcbd5fa56a
commit dc69bf4959
41 changed files with 178 additions and 162 deletions

8
un.lua
View file

@ -719,14 +719,14 @@ local function cmd_service(options)
end
if options.sleep then
api_request("/services/" .. options.sleep .. "/sleep", "POST", nil, keys)
print(GREEN .. "Service sleeping: " .. options.sleep .. RESET)
api_request("/services/" .. options.sleep .. "/freeze", "POST", nil, keys)
print(GREEN .. "Service frozen: " .. options.sleep .. RESET)
return
end
if options.wake then
api_request("/services/" .. options.wake .. "/wake", "POST", nil, keys)
print(GREEN .. "Service waking: " .. options.wake .. RESET)
api_request("/services/" .. options.wake .. "/unfreeze", "POST", nil, keys)
print(GREEN .. "Service unfreezing: " .. options.wake .. RESET)
return
end