MCPcopy Index your code
hub / github.com/carapace-sh/carapace-spec

github.com/carapace-sh/carapace-spec @v1.8.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.8.0 ↗ · + Follow
459 symbols 1,412 edges 39 files 16 documented · 3% 1 cross-repo links

Browse by type

Functions 395 Types & classes 64
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

carapace-spec

PkgGoDev GoReportCard documentation Coverage Status Packaging status

Define simple completions using a spec file (based on carapace).

The carapace-spec binary can be used to complete spec files, but carapace-bin is recommended as it supports a range of custom macros.

name: mycmd
description: my command
flags:
  --optarg?: optarg flag
  -r, --repeatable*: repeatable flag
  -v=: flag with value
persistentflags:
  --help: bool flag
completion:
  flag:
    optarg: ["one", "two\twith description", "three\twith style\tblue"]
    v: ["$files"]
commands:
- name: sub
  description: subcommand
  completion:
    positional:
      - ["$list(,)", "1", "2", "3"]
      - ["$directories"]

Generators

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 224
Method 171
Class 36
Struct 17
TypeAlias 10
Interface 1

Languages

TypeScript65%
Go35%

Modules by API surface

docs/asciinema/asciinema-player.min.js298 symbols
command.go15 symbols
pkg/macro/macro.go13 symbols
internal/pflagfork/flag.go13 symbols
codegen.go12 symbols
macro.go11 symbols
fork.go11 symbols
action.go8 symbols
run.go7 symbols
example_test.go6 symbols
register.go5 symbols
pkg/command/flag.go5 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add carapace-spec \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page