From 7c78a7f17a2566cbbb6615c096b01ef4f47978e0 Mon Sep 17 00:00:00 2001 From: Patrick MARIE Date: Fri, 26 Feb 2021 12:02:31 +0100 Subject: [PATCH] Updating README.md. --- README.md | 67 ++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 52 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 97f9f89..ee02604 100644 --- a/README.md +++ b/README.md @@ -11,24 +11,35 @@ Don't forget to download & install [cassandra-cpp](https://downloads.datastax.co ## Run ```sh -$ cargo build - Finished dev [unoptimized + debuginfo] target(s) in 0.04s - -$ cargo run -- --help bgutil-rs USAGE: - bgutil-rs + bgutil-rs [FLAGS] [OPTIONS] + +FLAGS: + --dry-run Do not write in database (local-clean only) + -h, --help Prints help information + -V, --version Prints version information + +OPTIONS: + --contact-metadata + [env: CASSANDRA_CONTACT_METADATA=localhost] + + --contact-points + [env: CASSANDRA_CONTACT_POINTS=localhost] + SUBCOMMANDS: - clean Stats - delete Delete metric(s) - help Prints this message or the help of the given subcommand(s) - info Information about a metric - list List metrics with given pattern - read Read a metric contents - stats Stats - write Write a metric and its value + clean Clean outdated metrics & empty directories + delete Delete metric(s) + help Prints this message or the help of the given subcommand(s) + info Information about a metric + list List metrics with given pattern + local-clean Clean a directory of outdated metrics & empty sub-directories + read Read a metric contents + stats Stats + write Write a metric and its value + ``` ### Info @@ -156,7 +167,7 @@ ARGS: ```sh $ cargo run -- clean --help -bgutil-rs-clean +bgutil-rs-clean Stats USAGE: @@ -171,6 +182,27 @@ OPTIONS: --start-key ``` +### Local-clean + +Clean outdated metrics in a given directory. + +```sh +$ cargo run -- local-clean --help +bgutil-rs-local-clean +Clean a directory of outdated metrics & empty sub-directories + +USAGE: + bgutil-rs local-clean + +FLAGS: + -h, --help Prints help information + -V, --version Prints version information + +ARGS: + +``` + + ## Todo * command: read @@ -183,4 +215,9 @@ OPTIONS: - with recursive * command: clean - progress bar -* ... \ No newline at end of file +* ... + + +## Dedication + +This piece of software was written during the mourning of Jean-Yves Moyart, aka Maître Mô, 21/10/1967-20/02/2021. My thoughts were with him, his family, his friends and all of us, who really appreciated him. Rest in Peace.