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.pl
8
un.pl
|
|
@ -507,14 +507,14 @@ sub cmd_service {
|
|||
}
|
||||
|
||||
if ($options->{sleep}) {
|
||||
api_request("/services/$options->{sleep}/sleep", 'POST', undef, $public_key, $secret_key);
|
||||
print "${GREEN}Service sleeping: $options->{sleep}${RESET}\n";
|
||||
api_request("/services/$options->{sleep}/freeze", 'POST', undef, $public_key, $secret_key);
|
||||
print "${GREEN}Service frozen: $options->{sleep}${RESET}\n";
|
||||
return;
|
||||
}
|
||||
|
||||
if ($options->{wake}) {
|
||||
api_request("/services/$options->{wake}/wake", 'POST', undef, $public_key, $secret_key);
|
||||
print "${GREEN}Service waking: $options->{wake}${RESET}\n";
|
||||
api_request("/services/$options->{wake}/unfreeze", 'POST', undef, $public_key, $secret_key);
|
||||
print "${GREEN}Service unfreezing: $options->{wake}${RESET}\n";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue