From 651efc1e6bd470b4f9803c7aa4766d798cc63eb7 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 9 Jan 2024 20:49:54 +0200 Subject: [PATCH] syndesizer: add file-system-usage --- README.md | 17 +++++++++++++++++ assertions.prs | 3 +++ config.prs | 4 ++++ src/schema/config.nim | 8 ++++++++ src/syndesizer.nim | 2 ++ src/syndesizer/file_system_usage.nim | 27 +++++++++++++++++++++++++++ 6 files changed, 61 insertions(+) create mode 100644 assertions.prs create mode 100644 src/syndesizer/file_system_usage.nim diff --git a/README.md b/README.md index f1a5729..ef0837a 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,23 @@ Example configuration: $cap ] ] ``` +### File System Usage + +Summarize the size of file-system directory. Equivalent to `du -s -b`. +Query the size of a directory in bytes by observing ``. + +``` +# Configuration example + +? [ + + > + ? ?cap> [ + $cap + ] + +] +``` ### JSON Socket Translator diff --git a/assertions.prs b/assertions.prs new file mode 100644 index 0000000..a556e81 --- /dev/null +++ b/assertions.prs @@ -0,0 +1,3 @@ +version 1. + +FileSystemUsage = . diff --git a/config.prs b/config.prs index 02094ce..3793d4b 100644 --- a/config.prs +++ b/config.prs @@ -6,6 +6,10 @@ CacheArguments = . +FileSystemUsageArguments = . + JsonTranslatorArguments =