Skip to content

Commit

Permalink
Fix release script when a crate is not yet published at all on crates…
Browse files Browse the repository at this point in the history
  • Loading branch information
romac authored May 3, 2023
1 parent 91ff1e4 commit eb7e757
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
55 changes: 55 additions & 0 deletions light-client-cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[![Crate][crate-image]][crate-link]
[![Docs][docs-image]][docs-link]

See the [repo root] for build status, license, Rust version, etc.

# Light Client CLI

CLI for the Tendermint [Light Client][light-client].

## Usage

```
Usage: tendermint-light-client-cli [OPTIONS] --chain-id <CHAIN_ID> --primary <PRIMARY> --witnesses <WITNESSES> --trusted-height <TRUSTED_HEIGHT> --trusted-hash <TRUSTED_HASH>
Options:
--chain-id <CHAIN_ID>
Identifier of the chain
--primary <PRIMARY>
Primary RPC address
--witnesses <WITNESSES>
Comma-separated list of witnesses RPC addresses
--trusted-height <TRUSTED_HEIGHT>
Height of trusted header
--trusted-hash <TRUSTED_HASH>
Hash of trusted header
--height <HEIGHT>
Height of the header to verify
--trust-threshold <TRUST_THRESHOLD>
Trust threshold [default: 2/3]
--trusting-period <TRUSTING_PERIOD>
Trusting period, in seconds (default: two weeks) [default: 1209600]
--max-clock-drift <MAX_CLOCK_DRIFT>
Maximum clock drift, in seconds [default: 5]
--max-block-lag <MAX_BLOCK_LAG>
Maximum block lag, in seconds [default: 5]
-v, --verbose...
Increase verbosity, can be repeated up to 2 times
-h, --help
Print help
-V, --version
Print version
```


[//]: # (badges)

[crate-image]: https://img.shields.io/crates/v/tendermint-light-client-cli.svg
[crate-link]: https://crates.io/crates/tendermint-light-client-cli
[docs-image]: https://docs.rs/tendermint-light-client-cli/badge.svg
[docs-link]: https://docs.rs/tendermint-light-client-cli/

[//]: # (general links)

[repo root]: https://github.com/informalsystems/tendermint-rs
[light-client]: https://github.com/informalsystems/tendermint-rs/tree/main/light-client
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ get_local_version() {
}

check_version_online() {
curl -s "https://crates.io/api/v1/crates/${1}" | jq -r '.versions[]|select(.num == "'"${2}"'").updated_at'
curl -s "https://crates.io/api/v1/crates/${1}" | jq -r 'try .versions[]|select(.num == "'"${2}"'").updated_at'
}

publish() {
Expand Down

0 comments on commit eb7e757

Please sign in to comment.