diff --git a/dlinux b/dlinux index cb7f644..66ed049 100755 --- a/dlinux +++ b/dlinux @@ -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