Commit 37bfa2af
37bfa2affe0aMerged
Scott Nixon <[email protected]> ยท 5 months ago ยท 4 files ยท +1 added ยท ~3 modified
Description
feat(attractor-cli): pas init TUI confirmation + non-interactive mode (attractor-7i2)
Add pas init command with TTY-aware interactive flows. In an interactive
terminal: shows detected toolchains, opens $EDITOR for manifest preview/edit,
then confirms before writing. Non-interactive (no TTY, PAS_NON_INTERACTIVE=1,
PAS_AGENT=1, or --non-interactive): writes straight through without blocking
stdin. Existing pas.toml prompts overwrite in TTY; errors without --force in
non-interactive. No .git exits with code 4 in non-interactive without --force.
Details
- Commit
- 37bfa2affe0a
- Parent
- a9bf1d319f13
crates/attractor-cli/Cargo.tomlmodifiedView file
serde_json = { workspace = true }chrono = { workspace = true }regex = { workspace = true }dialoguer = "0.12"[dev-dependencies]tempfile = "3"crates/attractor-cli/src/commands/init.rsaddedView file
Loading diffโฆ
crates/attractor-cli/src/commands/mod.rsmodifiedView file
Loading diffโฆ
crates/attractor-cli/src/main.rsmodifiedView file
Loading diffโฆ