carapace-integrate
The carapace-integrate skill integrates Carapace into a cobra-based CLI application.
Instructions
- start crush in an cobra project
ctrl+p,TAB, then select the skill- run with
integrate carapace
Create
create a standalone completer for the shell command
tail
Modify
i'm building my own git command. create completions for it.
- positional arguments are git refs
- default behaviour is to show a prettier git log for them (oneline, graph, make it fancy)
- add ref completion with a carapace macro (loosely coupled)
- dynamically embed git plugin commands at root level and bridge completions (executables with
git-prefix)- add dash completion since refs could clash with subcommands
minigit HEAD~1 master # show log for refs minigit clang-format # execute git-clang-format