Skip to content

Commit

Permalink
Update completions to use stellar instead of soroban (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeUrban authored Jun 5, 2024
1 parent d7fdbd4 commit 7eec383
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions FULL_HELP_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ Ensure the completion package for your shell is installed,
e.g., bash-completion for bash.

To enable autocomplete in the current bash shell, run:
source <(soroban completion --shell bash)
source <(stellar completion --shell bash)

To enable autocomplete permanently, run:
echo "source <(soroban completion --shell bash)" >> ~/.bashrc
echo "source <(stellar completion --shell bash)" >> ~/.bashrc

**Usage:** `stellar completion --shell <SHELL>`

Expand Down
6 changes: 3 additions & 3 deletions cmd/soroban-cli/src/commands/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Ensure the completion package for your shell is installed,
e.g., bash-completion for bash.
To enable autocomplete in the current bash shell, run:
source <(soroban completion --shell bash)
source <(stellar completion --shell bash)
To enable autocomplete permanently, run:
echo \"source <(soroban completion --shell bash)\" >> ~/.bashrc";
echo \"source <(stellar completion --shell bash)\" >> ~/.bashrc";

#[derive(Parser, Debug, Clone)]
#[group(skip)]
Expand All @@ -27,6 +27,6 @@ pub struct Cmd {
impl Cmd {
pub fn run(&self) {
let cmd = &mut Root::command();
generate(self.shell, cmd, "soroban", &mut io::stdout());
generate(self.shell, cmd, "stellar", &mut io::stdout());
}
}

0 comments on commit 7eec383

Please sign in to comment.