diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..ab1f416
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,10 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Ignored default folder with query files
+/queries/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/chatapp.iml b/.idea/chatapp.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/chatapp.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..03d9549
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/highlight_1_.xml b/.idea/libraries/highlight_1_.xml
new file mode 100644
index 0000000..f0fad57
--- /dev/null
+++ b/.idea/libraries/highlight_1_.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..1210572
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..34d377a
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.zed/settings.json b/.zed/settings.json
index 61c976d..a30bd1e 100644
--- a/.zed/settings.json
+++ b/.zed/settings.json
@@ -10,6 +10,12 @@
"command": "clippy" // rust-analyzer.check.command (default: "check")
}
}
+ },
+ "nu": {
+ "binary": {
+ "path": "/home/fantasypvp/.cargo/bin/nu",
+ "arguments": ["--lsp"]
+ }
}
}
}
diff --git a/scripts/inspect.nu b/scripts/inspect.nu
index 0e287b1..47ec291 100755
--- a/scripts/inspect.nu
+++ b/scripts/inspect.nu
@@ -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."
}
}