cli/pkg/cmd/root
William Martin 7ad1d7c0a1 Suggest and install official extensions via stub commands
Register hidden stub commands for official GitHub extensions (gh-aw,
gh-stack) that offer to install the extension when invoked. This
replaces the error-string-matching approach from the original PR with
proper cobra commands that:

- Avoid false-positive matches on flag values or post-'--' args
- Eliminate conflicting cobra 'Did you mean?' suggestions
- Properly propagate prompt/install errors for correct exit codes
- Are hidden from help output and shell completions
- Use GroupID "extension" so checkValidExtension allows installing over them
- Are registered after extensions and aliases so both take priority

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-16 17:58:37 +02:00
..
alias.go Fix error handling for extension and shell alias commands (#7567) 2023-06-20 08:41:02 +09:00
alias_test.go Allow creating of nested aliases (#7457) 2023-05-25 09:46:45 +09:00
extension.go Make extension update check non-blocking 2025-01-13 20:38:03 -05:00
extension_registration_test.go fix(root): avoid command name collision when registering extensions 2026-01-19 10:38:39 +00:00
extension_test.go Add small wait to extension update tests 2025-01-16 14:10:42 +01:00
help.go Update a11y text based on draft feedback 2025-04-28 15:01:15 -04:00
help_reference.go update generated content for man pages and website 2024-05-17 09:30:53 -04:00
help_test.go test: improve test case naming 2025-05-22 17:04:04 +01:00
help_topic.go Ensure hostnames are visible in CLI website 2025-07-14 08:33:20 -04:00
help_topic_test.go fix: resolve copyloopvar issues 2025-11-03 20:05:26 +00:00
official_extension.go Suggest and install official extensions via stub commands 2026-04-16 17:58:37 +02:00
official_extension_test.go Suggest and install official extensions via stub commands 2026-04-16 17:58:37 +02:00
root.go Suggest and install official extensions via stub commands 2026-04-16 17:58:37 +02:00