Skip to content

feat: Implement shell completions - #697

Open
adamspofford-dfinity wants to merge 7 commits into
mainfrom
spofford/complete
Open

feat: Implement shell completions#697
adamspofford-dfinity wants to merge 7 commits into
mainfrom
spofford/complete

Conversation

@adamspofford-dfinity

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings August 7, 2026 13:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds shell completion generation and automatic npm installation.

Changes:

  • Adds completion generation for five shells.
  • Installs common completions during npm postinstall.
  • Updates dependencies and documentation.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
npm/icp-cli/postinstall.js Invokes completion installation.
npm/icp-cli/completions.js Generates and installs scripts.
docs/reference/cli.md Documents the new command.
docs/guides/installation.md Adds installation guidance.
crates/icp-cli/src/main.rs Handles completions before setup.
crates/icp-cli/src/commands/mod.rs Registers the subcommand.
crates/icp-cli/src/commands/completions.rs Implements completion generation.
crates/icp-cli/Cargo.toml Adds crate dependency.
CHANGELOG.md Records the feature.
Cargo.toml Adds workspace dependency.
Cargo.lock Locks dependency changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread npm/icp-cli/postinstall.js Outdated
Comment thread npm/icp-cli/completions.js Outdated
Comment thread npm/icp-cli/completions.js Outdated
Comment thread docs/guides/installation.md
Comment on lines +33 to +35
pub(crate) fn exec(args: &CompletionsArgs) {
let mut command = Cli::command();
generate(args.shell, &mut command, "icp", &mut io::stdout());
adamspofford-dfinity and others added 4 commits August 7, 2026 08:01
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@adamspofford-dfinity
adamspofford-dfinity marked this pull request as ready for review August 7, 2026 15:06
@adamspofford-dfinity
adamspofford-dfinity requested a review from a team as a code owner August 7, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants