From fe0a86bf83dbd6280a04e47d7c48c0c45b150974 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 25 Jul 2024 11:00:25 +0300 Subject: [PATCH] docs(README.md): add section to show how to run with cargo run Signed-off-by: Lars Wirzenius --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index e828dc09..7937055c 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,20 @@ for Debian in the `debian` directory, used by Lars to build packages for his own use. +## Running from the source tree + +To run `cib` or `cibtool` from the source tree: + +~~~sh +cargo run --bin cib -- --config config.yaml process-events +cargo run --bin cibtool -- --db ci-broker.db event list +~~~ + +Note the `--` argument. It tells `cargo run` that all the arguments +that follow are to be passed to the program being run, and not used by +`cargo` itself. + + ## Running tests To run the test suite for the CI broker: