feat: state management commands
This commit is contained in:
parent
6928013321
commit
5373bcf569
15
dlinux
15
dlinux
@ -13,6 +13,9 @@ print_help() {
|
|||||||
printf "
|
printf "
|
||||||
$0 hello - Get a hello message
|
$0 hello - Get a hello message
|
||||||
$0 name - Get your SSHID
|
$0 name - Get your SSHID
|
||||||
|
$0 start - Start your container
|
||||||
|
$0 stop - Stop your container
|
||||||
|
$0 restart - Restart your container
|
||||||
$0 info - Get info about your container
|
$0 info - Get info about your container
|
||||||
$0 stats - Get your container memory usage statistics
|
$0 stats - Get your container memory usage statistics
|
||||||
$0 time - Get your container expiration time
|
$0 time - Get your container expiration time
|
||||||
@ -36,6 +39,18 @@ command_name() {
|
|||||||
call_api GET name | jq -r .message
|
call_api GET name | jq -r .message
|
||||||
}
|
}
|
||||||
|
|
||||||
|
command_start() {
|
||||||
|
call_api GET start | jq -r .message
|
||||||
|
}
|
||||||
|
|
||||||
|
command_stop() {
|
||||||
|
call_api GET stop | jq -r .message
|
||||||
|
}
|
||||||
|
|
||||||
|
command_restart() {
|
||||||
|
call_api GET restart | jq -r .message
|
||||||
|
}
|
||||||
|
|
||||||
command_info() {
|
command_info() {
|
||||||
data=$(call_api GET info)
|
data=$(call_api GET info)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user