From df869d487b54e329ecfb9b9a5da070bdfd7545d9 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Thu, 1 Jun 2023 15:53:11 +0300 Subject: [PATCH] Move CLI documentation after quickstart. --- README.md | 20 ++++++++++---------- src/lib.rs | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 5d8884e..88436cf 100644 --- a/README.md +++ b/README.md @@ -16,16 +16,6 @@ Evalexpr is [available on crates.io](https://crates.io/crates/evalexpr), and its -## 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 diff --git a/src/lib.rs b/src/lib.rs index 5d27d9e..9985919 100644 --- a/src/lib.rs +++ b/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