Move CLI documentation after quickstart.

This commit is contained in:
Sebastian Schmidt 2023-06-01 15:53:11 +03:00
parent daebc821d7
commit df869d487b
2 changed files with 20 additions and 20 deletions

View File

@ -16,16 +16,6 @@ Evalexpr is [available on crates.io](https://crates.io/crates/evalexpr), and its
<!-- cargo-sync-readme start --> <!-- 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 ## Quickstart
Add `evalexpr` as dependency to your `Cargo.toml`: 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)); 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 ## Features
### Operators ### Operators

View File

@ -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 //! ## Quickstart
//! //!
//! Add `evalexpr` as dependency to your `Cargo.toml`: //! Add `evalexpr` as dependency to your `Cargo.toml`:
@ -110,6 +100,16 @@
//! assert_eq!(precompiled.eval_boolean_with_context(&context), Ok(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 //! ## Features
//! //!
//! ### Operators //! ### Operators