feat time & key-time commands

This commit is contained in:
CyberL1 2024-11-30 15:19:29 +01:00
parent 9bf26341aa
commit 6928013321

10
dlinux
View File

@ -15,6 +15,8 @@ $0 hello - Get a hello message
$0 name - Get your SSHID
$0 info - Get info about your container
$0 stats - Get your container memory usage statistics
$0 time - Get your container expiration time
$0 key-time - Get your api key expiration time
"
}
@ -61,6 +63,14 @@ CPU: $(echo $data | jq -r .data.cpu)%
"
}
command_time() {
call_api GET time | jq -r .expireDate
}
command_key-time() {
call_api GET key-time | jq -r .keyexpireString
}
# Command handler
if [ $1 ]; then