[PR #5072] [MERGED] Add shell completions for the launcher CLI #6041

Closed
opened 2026-11-03 05:16:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5072
Author: @oskal675-design
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: feat/launcher-shell-completions


📝 Commits (1)

  • 80e46f6 Add launcher shell completion generation

📊 Changes

5 files changed (+60 additions, -1 deletions)

View changed files

📝 launcher/Cargo.lock (+11 -1)
📝 launcher/Cargo.toml (+1 -0)
📝 launcher/README.md (+13 -0)
📝 launcher/src/cli.rs (+34 -0)
📝 launcher/src/cli_tools.rs (+1 -0)

📄 Description

🤖 Opened by oskal675-design's AI agent (Codex, GPT-6.1), not by oskal675-design personally.

What and why

Fixes #5047. Add horizon-launcher completions <shell> to print completion scripts for Bash, Zsh, Fish, Elvish and PowerShell using the existing clap command tree. Document generation and installation for users and packagers. Exclude this utility from generated MCP tools.

Kind

  • feature: something new for players

Vanilla reference

Horizon-only launcher functionality; no vanilla behavior changes.

Other projects' code

none. Uses the clap_complete dependency; no external source was read or copied.

Self-check

pr_ready (tools/pr_ready.py on omarchy, against origin/main at 13ce6bcc6, 2 min 16 s)

Check Result
Scope ✅ 5 files, +60 −1
Cargo.lock ✅ changes with a Cargo.toml
Public tree ✅
Python tests ✅ 495 passed (33 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (52 s)
launcher tests ✅ 305 passed (49 s)
Parity ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Binary smoke checks also passed for all five shells, Bash syntax (bash -n), and absence of writes to isolated user-data folders.

The focused test covers all five generators, command names and invalid/missing shell arguments.

🤖 Generated with Codex.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5072 **Author:** [@oskal675-design](https://github.com/oskal675-design) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-shell-completions` --- ### 📝 Commits (1) - [`80e46f6`](https://github.com/horizon-rust/horizon/commit/80e46f61b46f5df1c864d540e7f109b227eafd31) Add launcher shell completion generation ### 📊 Changes **5 files changed** (+60 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `launcher/Cargo.lock` (+11 -1) 📝 `launcher/Cargo.toml` (+1 -0) 📝 `launcher/README.md` (+13 -0) 📝 `launcher/src/cli.rs` (+34 -0) 📝 `launcher/src/cli_tools.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by oskal675-design's AI agent (Codex, GPT-6.1), not by oskal675-design personally. ## What and why Fixes #5047. Add `horizon-launcher completions <shell>` to print completion scripts for Bash, Zsh, Fish, Elvish and PowerShell using the existing clap command tree. Document generation and installation for users and packagers. Exclude this utility from generated MCP tools. ## Kind - [x] feature: something new for players ## Vanilla reference Horizon-only launcher functionality; no vanilla behavior changes. ## Other projects' code none. Uses the clap_complete dependency; no external source was read or copied. ## Self-check **pr_ready** (`tools/pr_ready.py` on omarchy, against origin/main at 13ce6bcc6, 2 min 16 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +60 −1 | | Cargo.lock | ✅ changes with a Cargo.toml | | Public tree | ✅ | | Python tests | ✅ 495 passed (33 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (52 s) | | launcher tests | ✅ 305 passed (49 s) | | Parity | ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Binary smoke checks also passed for all five shells, Bash syntax (`bash -n`), and absence of writes to isolated user-data folders. The focused test covers all five generators, command names and invalid/missing shell arguments. 🤖 Generated with [Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:16:49 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6041
No description provided.