Move CLI documentation after quickstart.
This commit is contained in:
parent
daebc821d7
commit
df869d487b
20
README.md
20
README.md
@ -16,16 +16,6 @@ Evalexpr is [available on crates.io](https://crates.io/crates/evalexpr), and its
|
||||
<!-- cargo-sync-readme start -->
|
||||
|
||||
|
||||
## CLI
|
||||
|
||||
While primarily meant to be used as a library, `evalexpr` is also available as a command line tool.
|
||||
It can be installed and used as follows:
|
||||
|
||||
```bash
|
||||
cargo install evalexpr
|
||||
evalexpr 2 + 3 # outputs `5` to stdout.
|
||||
```
|
||||
|
||||
## Quickstart
|
||||
|
||||
Add `evalexpr` as dependency to your `Cargo.toml`:
|
||||
@ -127,6 +117,16 @@ assert_eq!(precompiled.eval_with_context(&context), Ok(Value::from(false)));
|
||||
assert_eq!(precompiled.eval_boolean_with_context(&context), Ok(false));
|
||||
```
|
||||
|
||||
## CLI
|
||||
|
||||
While primarily meant to be used as a library, `evalexpr` is also available as a command line tool.
|
||||
It can be installed and used as follows:
|
||||
|
||||
```bash
|
||||
cargo install evalexpr
|
||||
evalexpr 2 + 3 # outputs `5` to stdout.
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
### Operators
|
||||
|
20
src/lib.rs
20
src/lib.rs
@ -1,14 +1,4 @@
|
||||
//!
|
||||
//! ## CLI
|
||||
//!
|
||||
//! While primarily meant to be used as a library, `evalexpr` is also available as a command line tool.
|
||||
//! It can be installed and used as follows:
|
||||
//!
|
||||
//! ```bash
|
||||
//! cargo install evalexpr
|
||||
//! evalexpr 2 + 3 # outputs `5` to stdout.
|
||||
//! ```
|
||||
//!
|
||||
//! ## Quickstart
|
||||
//!
|
||||
//! Add `evalexpr` as dependency to your `Cargo.toml`:
|
||||
@ -110,6 +100,16 @@
|
||||
//! assert_eq!(precompiled.eval_boolean_with_context(&context), Ok(false));
|
||||
//! ```
|
||||
//!
|
||||
//! ## CLI
|
||||
//!
|
||||
//! While primarily meant to be used as a library, `evalexpr` is also available as a command line tool.
|
||||
//! It can be installed and used as follows:
|
||||
//!
|
||||
//! ```bash
|
||||
//! cargo install evalexpr
|
||||
//! evalexpr 2 + 3 # outputs `5` to stdout.
|
||||
//! ```
|
||||
//!
|
||||
//! ## Features
|
||||
//!
|
||||
//! ### Operators
|
||||
|
Loading…
Reference in New Issue
Block a user