diff --git a/README.md b/README.md index d5d10f4..908ae56 100644 --- a/README.md +++ b/README.md @@ -8,21 +8,12 @@ cargo install --locked --path . ``` -```bash -> polars -Polars CLI v0.3.0 +```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 │ └────────────┘ ``` 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 {};