Merge 'cli: Rename CLI to Turso' from Pekka Enberg

Closes #1859
This commit is contained in:
Pekka Enberg
2025-06-27 12:55:50 +03:00
5 changed files with 36 additions and 36 deletions

View File

@@ -21,10 +21,10 @@ Examples of contributing
* [How to contribute a SQL function implementation](docs/contributing/contributing_functions.md)
To build and run `limbo` cli:
To build and run `tursodb` CLI:
```shell
cargo run --package limbo_cli --bin limbo database.db
cargo run --package turso_cli --bin tursodb database.db
```
Run tests:

60
Cargo.lock generated
View File

@@ -1759,36 +1759,6 @@ dependencies = [
"web-sys",
]
[[package]]
name = "limbo_cli"
version = "0.0.22"
dependencies = [
"anyhow",
"cfg-if",
"clap",
"clap_complete",
"comfy-table",
"csv",
"ctrlc",
"dirs 5.0.1",
"env_logger 0.10.2",
"libc",
"limbo_core",
"miette",
"nu-ansi-term 0.50.1",
"rustyline",
"schemars",
"serde",
"shlex",
"syntect",
"toml",
"toml_edit",
"tracing",
"tracing-appender",
"tracing-subscriber",
"validator",
]
[[package]]
name = "limbo_completion"
version = "0.0.22"
@@ -3810,6 +3780,36 @@ dependencies = [
"tracing-log",
]
[[package]]
name = "turso_cli"
version = "0.0.22"
dependencies = [
"anyhow",
"cfg-if",
"clap",
"clap_complete",
"comfy-table",
"csv",
"ctrlc",
"dirs 5.0.1",
"env_logger 0.10.2",
"libc",
"limbo_core",
"miette",
"nu-ansi-term 0.50.1",
"rustyline",
"schemars",
"serde",
"shlex",
"syntect",
"toml",
"toml_edit",
"tracing",
"tracing-appender",
"tracing-subscriber",
"validator",
]
[[package]]
name = "turso_node"
version = "0.0.22"

View File

@@ -51,7 +51,7 @@ You can install the latest `limbo` release with:
```shell
curl --proto '=https' --tlsv1.2 -LsSf \
https://github.com/tursodatabase/limbo/releases/latest/download/limbo_cli-installer.sh | sh
https://github.com/tursodatabase/limbo/releases/latest/download/turso_cli-installer.sh | sh
```
Then launch the shell to execute SQL statements:

View File

@@ -6,7 +6,7 @@ default-run = "tursodb"
description = "The Turso interactive SQL shell"
edition.workspace = true
license.workspace = true
name = "limbo_cli"
name = "turso_cli"
repository.workspace = true
version.workspace = true

View File

@@ -63,7 +63,7 @@ pub struct Opts {
pub tracing_output: Option<String>,
}
const PROMPT: &str = "limbo> ";
const PROMPT: &str = "turso> ";
pub struct Limbo {
pub prompt: String,
@@ -187,7 +187,7 @@ impl Limbo {
self.handle_first_input(&sql)?;
}
if !quiet {
self.write_fmt(format_args!("Limbo v{}", env!("CARGO_PKG_VERSION")))?;
self.write_fmt(format_args!("Turso v{}", env!("CARGO_PKG_VERSION")))?;
self.writeln("Enter \".help\" for usage hints.")?;
self.writeln(
"This software is ALPHA, only use for development, testing, and experimentation.",