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.js
View file

@ -679,14 +679,14 @@ async function cmdService(args) {
}
if (args.sleep) {
await apiRequest(`/services/${args.sleep}/sleep`, "POST", null, publicKey, secretKey);
console.log(`${GREEN}Service sleeping: ${args.sleep}${RESET}`);
await apiRequest(`/services/${args.sleep}/freeze`, "POST", null, publicKey, secretKey);
console.log(`${GREEN}Service frozen: ${args.sleep}${RESET}`);
return;
}
if (args.wake) {
await apiRequest(`/services/${args.wake}/wake`, "POST", null, publicKey, secretKey);
console.log(`${GREEN}Service waking: ${args.wake}${RESET}`);
await apiRequest(`/services/${args.wake}/unfreeze`, "POST", null, publicKey, secretKey);
console.log(`${GREEN}Service unfreezing: ${args.wake}${RESET}`);
return;
}