docs(README.md): add section to show how to run with cargo run

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2024-07-25 11:00:25 +03:00
parent bbaa1c27c6
commit fe0a86bf83
+14
View File
@@ -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: