From 69280133214e177028997a9ac812d08159284003 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Sat, 30 Nov 2024 15:19:29 +0100 Subject: [PATCH] feat time & key-time commands --- dlinux | 10 ++++++++++ 1 file changed, 10 insertions(+) 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