Skip to content

Hide carapace internal command from completions#82

Open
M09Ic wants to merge 1 commit into
reeflective:mainfrom
M09Ic:pr/console-hide-carapace-command
Open

Hide carapace internal command from completions#82
M09Ic wants to merge 1 commit into
reeflective:mainfrom
M09Ic:pr/console-hide-carapace-command

Conversation

@M09Ic

@M09Ic M09Ic commented Jun 27, 2026

Copy link
Copy Markdown

Background

Carapace injects an internal _carapace command for shell completion plumbing. In an interactive console, that implementation detail should not be offered as a normal user command.

Approach

  • Hide _carapace recursively after carapace.Gen has initialized completion state.
  • Filter _carapace out while converting carapace values into readline completions.
  • Keep the change limited to the completion path.

Tests

  • Added a regression test with an explicit _carapace subcommand.
  • Verified the command is hidden and not returned as a completion value.
  • Ran go test ./...

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.

1 participant