feat: daedalus init - register argcomplete tab completion (v0.10.0)
- new script python/src/init/init.py: locates the register-python-argcomplete that belongs to the running interpreter (venv bin, NOT the resolve()d symlink target - proven by a live pipx run), appends the managed hook block to ~/.bashrc between # BEGIN/END daedalus init markers, idempotent; --bashrc, --dry-run; Windows notice; zsh warning - per-script spec python/src/init/spec.md (SPEC 6.11/6.12), tests python/tests/test_init_script.py (13; the plain test_init.py name is taken by daedalus/tests) - registry entry, README row + section, pyproject packaging (daedalus.init), CHANGELOG 0.10.0, version pins Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -10,6 +10,23 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
||||
|
||||
- Nothing yet.
|
||||
|
||||
## [0.10.0] - 2026-11-19
|
||||
|
||||
### Added in 0.10.0
|
||||
|
||||
- `daedalus init`: the one-time shell-side setup for tab completion.
|
||||
Finds the `register-python-argcomplete` that belongs to this exact
|
||||
daedalus interpreter (the pipx venv, the checkout .venv, or the
|
||||
system python — argcomplete's script sits beside it), then appends
|
||||
the completion hook to `~/.bashrc` between managed markers (or
|
||||
`--bashrc FILE`), idempotently: an already-registered bashrc is left
|
||||
untouched. `--dry-run` prints the block and the target; on Windows
|
||||
the script prints a notice and does nothing; a zsh `$SHELL` gets a
|
||||
logged warning about the `bashcompinit` preamble. Exit 3 when the
|
||||
register script is nowhere to be found. The full behavior is
|
||||
`python/src/init/spec.md` (sections 1-7), written first, then tests,
|
||||
then code (SPEC 6.12).
|
||||
|
||||
## [0.9.0] - 2026-11-19
|
||||
|
||||
### Added in 0.9.0
|
||||
|
||||
Reference in New Issue
Block a user