From 78bc7cfa6702d79a6e7198d453f3ef2f09e83b94 Mon Sep 17 00:00:00 2001 From: Nando Vieira Date: Tue, 18 Jun 2024 12:36:39 -0700 Subject: [PATCH] Fix other places that were referencing `soroban`. --- FULL_HELP_DOCS.md | 14 +++++++------- cmd/soroban-cli/src/commands/config/locator.rs | 8 ++------ cmd/soroban-cli/src/commands/contract/asset.rs | 2 +- cmd/soroban-cli/src/commands/network/mod.rs | 6 +++--- cmd/soroban-cli/src/commands/plugin.rs | 4 ++-- 5 files changed, 15 insertions(+), 19 deletions(-) diff --git a/FULL_HELP_DOCS.md b/FULL_HELP_DOCS.md index 861ed3904..450e94e4d 100644 --- a/FULL_HELP_DOCS.md +++ b/FULL_HELP_DOCS.md @@ -190,14 +190,14 @@ Utilities to deploy a Stellar Asset Contract or get its id ###### **Subcommands:** -* `id` — Get Id of builtin Soroban Asset Contract. Deprecated, use `soroban contract id asset` instead +* `id` — Get Id of builtin Soroban Asset Contract. Deprecated, use `stellar contract id asset` instead * `deploy` — Deploy builtin Soroban Asset Contract ## `stellar contract asset id` -Get Id of builtin Soroban Asset Contract. Deprecated, use `soroban contract id asset` instead +Get Id of builtin Soroban Asset Contract. Deprecated, use `stellar contract id asset` instead **Usage:** `stellar contract asset id [OPTIONS] --asset --source-account ` @@ -1211,8 +1211,8 @@ Start and configure networks * `add` — Add a new network * `rm` — Remove a network * `ls` — List networks -* `start` — ⚠️ Deprecated: use `soroban container start` instead -* `stop` — ⚠️ Deprecated: use `soroban container stop` instead +* `start` — ⚠️ Deprecated: use `stellar container start` instead +* `stop` — ⚠️ Deprecated: use `stellar container stop` instead * `container` — Commands to start, stop and get logs for a quickstart container @@ -1281,7 +1281,7 @@ List networks ## `stellar network start` -⚠️ Deprecated: use `soroban container start` instead +⚠️ Deprecated: use `stellar container start` instead Start network @@ -1314,9 +1314,9 @@ By default, when starting a testnet container, without any optional arguments, i ## `stellar network stop` -⚠️ Deprecated: use `soroban container stop` instead +⚠️ Deprecated: use `stellar container stop` instead -Stop a network started with `network start`. For example, if you ran `soroban network start local`, you can use `soroban network stop local` to stop it. +Stop a network started with `network start`. For example, if you ran `stellar network start local`, you can use `stellar network stop local` to stop it. **Usage:** `stellar network stop [OPTIONS] ` diff --git a/cmd/soroban-cli/src/commands/config/locator.rs b/cmd/soroban-cli/src/commands/config/locator.rs index 680bcb536..09a6c2f73 100644 --- a/cmd/soroban-cli/src/commands/config/locator.rs +++ b/cmd/soroban-cli/src/commands/config/locator.rs @@ -22,13 +22,9 @@ pub enum Error { NoConfigEnvVar, #[error("Failed to create directory: {path:?}")] DirCreationFailed { path: PathBuf }, - #[error( - "Failed to read secret's file: {path}.\nProbably need to use `soroban config identity add`" - )] + #[error("Failed to read secret's file: {path}.\nProbably need to use `stellar keys add`")] SecretFileRead { path: PathBuf }, - #[error( - "Failed to read network file: {path};\nProbably need to use `soroban config network add`" - )] + #[error("Failed to read network file: {path};\nProbably need to use `stellar network add`")] NetworkFileRead { path: PathBuf }, #[error(transparent)] Toml(#[from] toml::de::Error), diff --git a/cmd/soroban-cli/src/commands/contract/asset.rs b/cmd/soroban-cli/src/commands/contract/asset.rs index ad7be0207..edf077a7c 100644 --- a/cmd/soroban-cli/src/commands/contract/asset.rs +++ b/cmd/soroban-cli/src/commands/contract/asset.rs @@ -2,7 +2,7 @@ use super::{deploy, id}; #[derive(Debug, clap::Subcommand)] pub enum Cmd { - /// Get Id of builtin Soroban Asset Contract. Deprecated, use `soroban contract id asset` instead + /// Get Id of builtin Soroban Asset Contract. Deprecated, use `stellar contract id asset` instead Id(id::asset::Cmd), /// Deploy builtin Soroban Asset Contract Deploy(deploy::asset::Cmd), diff --git a/cmd/soroban-cli/src/commands/network/mod.rs b/cmd/soroban-cli/src/commands/network/mod.rs index 581b965a0..7731bf8a3 100644 --- a/cmd/soroban-cli/src/commands/network/mod.rs +++ b/cmd/soroban-cli/src/commands/network/mod.rs @@ -27,7 +27,7 @@ pub enum Cmd { Rm(rm::Cmd), /// List networks Ls(ls::Cmd), - /// ⚠️ Deprecated: use `soroban container start` instead + /// ⚠️ Deprecated: use `stellar container start` instead /// /// Start network /// @@ -38,9 +38,9 @@ pub enum Cmd { /// By default, when starting a testnet container, without any optional arguments, it will run the equivalent of the following docker command: /// docker run --rm -p 8000:8000 --name stellar stellar/quickstart:testing --testnet --enable-soroban-rpc Start(container::StartCmd), - /// ⚠️ Deprecated: use `soroban container stop` instead + /// ⚠️ Deprecated: use `stellar container stop` instead /// - /// Stop a network started with `network start`. For example, if you ran `soroban network start local`, you can use `soroban network stop local` to stop it. + /// Stop a network started with `network start`. For example, if you ran `stellar network start local`, you can use `stellar network stop local` to stop it. Stop(container::StopCmd), /// Commands to start, stop and get logs for a quickstart container diff --git a/cmd/soroban-cli/src/commands/plugin.rs b/cmd/soroban-cli/src/commands/plugin.rs index 27c191f08..2fa028d5c 100644 --- a/cmd/soroban-cli/src/commands/plugin.rs +++ b/cmd/soroban-cli/src/commands/plugin.rs @@ -7,14 +7,14 @@ use crate::{utils, Root}; #[derive(thiserror::Error, Debug)] pub enum Error { - #[error("Plugin not provided. Should be `soroban plugin` for a binary `soroban-plugin`")] + #[error("Plugin not provided. Should be `stellar plugin` for a binary `stellar-plugin`")] MissingSubcommand, #[error(transparent)] IO(#[from] std::io::Error), #[error( r#"error: no such command: `{0}` - {1}View all installed plugins with `soroban --list`"# + {1}View all installed plugins with `stellar --list`"# )] ExecutableNotFound(String, String), #[error(transparent)]