Update README and fix msrv

This commit is contained in:
Lutetium-Vanadium 2022-07-07 14:17:59 +05:30
parent e3d7c9cbdb
commit 10bd277f3d
4 changed files with 11 additions and 5 deletions

View File

@ -17,7 +17,7 @@ jobs:
# pinned (MSRV) rust version :: ubuntu
- build: msrv
os: ubuntu-18.04
rust: 1.56.0
rust: 1.56.1
# latest rust stable :: ubuntu
- build: stable

View File

@ -17,7 +17,7 @@ jobs:
# pinned (MSRV) rust version :: ubuntu
- build: msrv
os: ubuntu-18.04
rust: 1.56.0
rust: 1.56.1
# latest rust stable :: ubuntu
- build: stable

View File

@ -17,7 +17,7 @@ jobs:
# pinned (MSRV) rust version :: ubuntu
- build: msrv
os: ubuntu-18.04
rust: 1.56.0
rust: 1.56.1
# latest rust stable :: ubuntu
- build: stable

View File

@ -32,9 +32,11 @@ Add this to your `Cargo.toml`
```toml
[dependencies]
requestty = "0.3.0"
requestty = "0.4.1"
```
To ask a question:
```rust
let question = requestty::Question::expand("overwrite")
.message("Conflict on `file.rs`")
@ -50,6 +52,10 @@ let question = requestty::Question::expand("overwrite")
println!("{:#?}", requestty::prompt_one(question));
```
More examples are available in the [documentation](https://docs.rs/requestty)
and the [examples](https://github.com/Lutetium-Vanadium/requestty/tree/master/examples)
directory.
## In-built prompts
There are 10 in-built prompts:
@ -147,4 +153,4 @@ There are 10 in-built prompts:
## Minimum Supported Rust Version (MSRV)
Minimum supported rust version (as per
[cargo-msrv](https://crates.io/crates/cargo-msrv)) is `1.56`
[cargo-msrv](https://crates.io/crates/cargo-msrv)) is `1.56.1`