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:
parent
bcbd5fa56a
commit
dc69bf4959
41 changed files with 178 additions and 162 deletions
8
un.php
8
un.php
|
|
@ -643,14 +643,14 @@ function cmd_service($options) {
|
|||
}
|
||||
|
||||
if ($options['sleep']) {
|
||||
api_request("/services/{$options['sleep']}/sleep", 'POST', null, $keys);
|
||||
echo GREEN . "Service sleeping: {$options['sleep']}" . RESET . "\n";
|
||||
api_request("/services/{$options['sleep']}/freeze", 'POST', null, $keys);
|
||||
echo GREEN . "Service frozen: {$options['sleep']}" . RESET . "\n";
|
||||
return;
|
||||
}
|
||||
|
||||
if ($options['wake']) {
|
||||
api_request("/services/{$options['wake']}/wake", 'POST', null, $keys);
|
||||
echo GREEN . "Service waking: {$options['wake']}" . RESET . "\n";
|
||||
api_request("/services/{$options['wake']}/unfreeze", 'POST', null, $keys);
|
||||
echo GREEN . "Service unfreezing: {$options['wake']}" . RESET . "\n";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue