Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FULL_HELP_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Anything after the `--` double dash (the "slop") is parsed as arguments to the c
- `-q`, `--quiet` — Do not write logs to stderr including `INFO`
- `-v`, `--verbose` — Log DEBUG events
- `--very-verbose` [alias: `vv`] — Log DEBUG and TRACE events
- `--list` — List installed plugins. E.g. `stellar-hello`
- `--list` — ⚠️ Deprecated, use `stellar plugin ls`. List installed plugins. E.g. `stellar-hello`
- `--no-cache` — Do not cache your simulations and transactions

## `stellar contract`
Expand Down
5 changes: 3 additions & 2 deletions cmd/crates/soroban-test/tests/it/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ fn stellar_bye() {

#[test]
fn list() {
// Call `soroban --list` with the PATH variable set to include the target/bin directory
// Call `stellar plugin ls` with the PATH variable set to include the target/bin directory
assert_cmd::Command::cargo_bin("stellar")
.unwrap_or_else(|_| assert_cmd::Command::new("stellar"))
.arg("--list")
.arg("plugin")
.arg("ls")
.env("PATH", get_paths())
.assert()
.stdout(predicates::str::contains("hello"))
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub struct Args {
#[arg(long, visible_alias = "vv", global = true, help_heading = HEADING_GLOBAL)]
pub very_verbose: bool,

/// List installed plugins. E.g. `stellar-hello`
/// ⚠️ Deprecated, use `stellar plugin ls`. List installed plugins. E.g. `stellar-hello`
#[arg(long)]
pub list: bool,

Expand Down
2 changes: 2 additions & 0 deletions cmd/soroban-cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ impl Root {
pub fn new() -> Result<Self, Error> {
Self::try_parse().map_err(|e| {
if std::env::args().any(|s| s == "--list") {
let print = Print::new(std::env::args().any(|s| s == "--quiet" || s == "-q"));
deprecate_message(print, "--list", "Use `stellar plugin ls` instead.");
let _ = plugin::ls::Cmd.run();
std::process::exit(0);
}
Expand Down