From 28448fa75b8cecf85d3d14b9890b7613d73346fc Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Fri, 11 Aug 2023 10:45:15 +0200 Subject: [PATCH 1/2] Update version in welcome message --- README.md | 2 +- src/interactive.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d5d10f4..021acfa 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ cargo install --locked --path . ```bash > polars -Polars CLI v0.3.0 +Polars CLI version 0.3.0 Type .help for help. >> .help ┌─────────┬────────────────────┐ diff --git a/src/interactive.rs b/src/interactive.rs index 6bfc8b1..c9b8d0a 100644 --- a/src/interactive.rs +++ b/src/interactive.rs @@ -155,7 +155,7 @@ pub(super) fn run_tty(output_mode: OutputMode) -> std::io::Result<()> { let mut context = SQLContext::new(); - println!("Polars CLI v{}", crate_version!()); + println!("Polars CLI version {}", crate_version!()); println!("Type .help for help."); let prompt = SQLPrompt {}; From 1270ade6da2bc54e903f90da9b6db2556114503c Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Fri, 11 Aug 2023 10:56:39 +0200 Subject: [PATCH 2/2] Update README --- README.md | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 021acfa..908ae56 100644 --- a/README.md +++ b/README.md @@ -8,21 +8,12 @@ cargo install --locked --path . ``` -```bash -> polars +```shell +$ polars Polars CLI version 0.3.0 Type .help for help. ->> .help -┌─────────┬────────────────────┐ -│ command ┆ description │ -╞═════════╪════════════════════╡ -│ .help ┆ Display this help │ -│ .exit ┆ Exit this program │ -└─────────┴────────────────────┘ -shape: (2, 2) >> select * FROM read_csv('examples/datasets/foods1.csv'); -shape: (27, 4) ┌────────────┬──────────┬────────┬──────────┐ │ category ┆ calories ┆ fats_g ┆ sugars_g │ │ --- ┆ --- ┆ --- ┆ --- │ @@ -33,10 +24,10 @@ shape: (27, 4) │ meat ┆ 100 ┆ 5.0 ┆ 0 │ │ fruit ┆ 60 ┆ 0.0 ┆ 11 │ │ … ┆ … ┆ … ┆ … │ -│ fruit ┆ 130 ┆ 0.0 ┆ 25 │ -│ meat ┆ 100 ┆ 7.0 ┆ 0 │ -│ vegetables ┆ 30 ┆ 0.0 ┆ 5 │ -│ fruit ┆ 50 ┆ 0.0 ┆ 11 │ +│ seafood ┆ 200 ┆ 10.0 ┆ 0 │ +│ seafood ┆ 200 ┆ 7.0 ┆ 2 │ +│ fruit ┆ 60 ┆ 0.0 ┆ 11 │ +│ meat ┆ 110 ┆ 7.0 ┆ 0 │ └────────────┴──────────┴────────┴──────────┘ ``` @@ -44,8 +35,6 @@ Or pipe your SQL command directly inline: ```bash $ echo "SELECT category FROM read_csv('examples/datasets/foods1.csv')" | polars - -shape: (27, 1) ┌────────────┐ │ category │ │ --- │ @@ -56,10 +45,10 @@ shape: (27, 1) │ meat │ │ fruit │ │ … │ +│ seafood │ +│ seafood │ │ fruit │ │ meat │ -│ vegetables │ -│ fruit │ └────────────┘ ```