-
Notifications
You must be signed in to change notification settings - Fork 4
CLI Getting Started Complete
The hidden command every completion script calls. It takes the command line you are typing and prints the candidates for one word of it.
ed __complete [--index <n>] [--] <words>...
Arguments and options
| Name | Type / values | Default | What it does |
|---|---|---|---|
--index <n> |
integer, zero based | 0 |
Which word of <words> is being completed |
<words> |
everything else, captured verbatim | empty | The whole command line, including the program name at index 0. A leading -- is dropped |
It is marked as not displayed, so it never appears in ed --help, but it is a
reserved name, so a machine called __complete can never shadow it. It has no
--json: the output is one candidate per line, and the literal line #files
means "also offer local file names here". No candidates means no output, and it
exits 0 either way.
It is also the one command with no working --help. Everything that is not
--index is captured verbatim, so ed __complete --help completes the word
--help and prints it straight back rather than printing help, and
ed __complete --version does the same instead of printing the version.
Examples
$ ed __complete --index 1 -- ed co
completions
config
color
$ ed __complete --index 4 -- ed config set limitsProvider ""
claude
codex
$ ed __complete --index 3 -- ed shelf add ""
#files
-
Getting started with
ed, the rest of this group - All
edcommands
Auto-generated from docs/, edit the docs in the repo, not the wiki.
CLI reference
Companion
- Deploy
- Concepts
- Concepts Memory
- Concepts Ingestion
- Concepts Search
- Concepts Chat
- Concepts Learning
- Concepts Brain
- Concepts Friend
- Hosts
- Stack
- Status
- Doctor
- Search
- Index
- Ingest
- Episodes
- Sync
- Observations
- Reflect
- Beliefs
- Ask
- Extract
- Claims
- Corroborate
- Runs
- Chat
- Conversations
- Forget
- Export
- Import
- Erase
- Wipe
- Episode
- Nightly
- Reason
- Personas
- Council
- Lenses
- Core
- Why
- Hypotheses
- Predictions
- Commitments
- Discrepancies
- Calibration
- Inquire
- Entities
- Eval
- Standup
- Machines
- Baselines
- Connectors
- Facts
- Correct
- Weekly
- Db
Guides