updated workspace settings and some scripts

This commit is contained in:
2026-04-01 21:53:38 +01:00
parent a0e9244d6a
commit 3dfaab4865
9 changed files with 70 additions and 1 deletions
+11 -1
View File
@@ -94,6 +94,12 @@ def stats [] {
} | print
}
def redis-cache [...args: string] {
# print $"redis-cli --csv (...($args | str trim))"
redis-cli ...($args | str trim) | lines | each { |line| $line | from json } | print
}
# Display help menu
def help-menu [] {
print "Available commands:"
@@ -120,7 +126,7 @@ def main [] {
loop {
print ""
let input = (input "Enter command > ")
let parts = ($input | split words)
let parts = ($input | split row ' ')
let cmd = ($parts | first)
match $cmd {
@@ -150,6 +156,9 @@ def main [] {
}
},
"sessions" => sessions,
"redis" => {
redis-cache ...($parts | skip 1)
}
"active-sessions" => active-sessions,
"access-codes" => access-codes,
"valid-access-codes" => valid-access-codes,
@@ -164,6 +173,7 @@ def main [] {
"stats" => stats,
"help" => help-menu,
"exit" => break,
"clear" => clear,
_ => $"Unknown command: \($cmd). Type 'help' for available commands."
}
}