mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-10-18 19:30:29 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user