Browse Source

adds install, build from source, running tests sections

master
Jonathan Strong 2 years ago
parent
commit
09bf5fbd2a
  1. 24
      README.md
  2. 22
      doc/README.tera.md

24
README.md

@ -28,6 +28,12 @@ $ registry-backup \
--requests-per-second 10 --requests-per-second 10
``` ```
## Install
```console
$ cargo install registry-backup --git https://git.shipyard.rs/jstrong/registry-backup.git
```
## Runtime Options ## Runtime Options
```console ```console
@ -103,6 +109,22 @@ format = "/{crate}/{version}/download"
``` ```
## Build From Source
```console
$ git clone https://git.shipyard.rs/jstrong/registry-backup.git
$ cd registry-backup
$ just release-build # alternatively, cargo build --bin registry-backup --release
# ./target/release/registry-backup --help
# cp target/release/registry-backup ~/.cargo/bin/
```
## Running Tests
```console
$ just test # alternatively, cargo test
```
## Justfile ## Justfile
The repository includes a `justfile` with functionality for building, testing, etc. The repository includes a `justfile` with functionality for building, testing, etc.
@ -137,7 +159,7 @@ The commands that mirror cargo commands (e.g. `just test`) are included for the
This file is generated using a template (`doc/README.tera.md`) rendered using updated outputs of the CLI menu, config sample, and other values. This file is generated using a template (`doc/README.tera.md`) rendered using updated outputs of the CLI menu, config sample, and other values.
This version of `README.md` was generated at `Fri, 09 Sep 2022 02:55:22 +0000` based on git commit `1c087e79`. This version of `README.md` was generated at `Fri, 09 Sep 2022 03:02:19 +0000` based on git commit `fd6191e9`.
To (re-)generate the `README.md` file, use the justfile command: To (re-)generate the `README.md` file, use the justfile command:

22
doc/README.tera.md

@ -28,6 +28,12 @@ $ registry-backup \
--requests-per-second 10 --requests-per-second 10
``` ```
## Install
```console
$ cargo install registry-backup --git https://git.shipyard.rs/jstrong/registry-backup.git
```
## Runtime Options ## Runtime Options
```console ```console
@ -44,6 +50,22 @@ A toml configuration file may be used instead of command line flags. A sample fi
{{ config_sample }} {{ config_sample }}
``` ```
## Build From Source
```console
$ git clone https://git.shipyard.rs/jstrong/registry-backup.git
$ cd registry-backup
$ just release-build # alternatively, cargo build --bin registry-backup --release
# ./target/release/registry-backup --help
# cp target/release/registry-backup ~/.cargo/bin/
```
## Running Tests
```console
$ just test # alternatively, cargo test
```
## Justfile ## Justfile
The repository includes a `justfile` with functionality for building, testing, etc. The repository includes a `justfile` with functionality for building, testing, etc.

Loading…
Cancel
Save