fix(cli): add --yes flag to agents init for non-interactive setup #624

Merged
freemo merged 1 commits from feature/m3-fix-init-yes-flag into master 2026-03-07 15:50:20 +00:00

1 Commits

Author SHA1 Message Date
freemo 620adfee01 fix(cli): add --yes flag to agents init for non-interactive setup
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 14s
CI / build (pull_request) Successful in 15s
CI / quality (pull_request) Successful in 25s
CI / security (pull_request) Successful in 35s
CI / typecheck (pull_request) Successful in 55s
CI / unit_tests (pull_request) Successful in 2m24s
CI / docker (pull_request) Successful in 38s
CI / integration_tests (pull_request) Successful in 3m16s
CI / coverage (pull_request) Successful in 4m30s
CI / benchmark-regression (pull_request) Successful in 32m6s
CI / lint (push) Successful in 12s
CI / build (push) Successful in 15s
CI / quality (push) Successful in 17s
CI / security (push) Successful in 33s
CI / typecheck (push) Successful in 34s
CI / benchmark-regression (push) Has been skipped
CI / unit_tests (push) Successful in 2m19s
CI / docker (push) Successful in 38s
CI / integration_tests (push) Successful in 3m48s
CI / coverage (push) Successful in 5m48s
CI / benchmark-publish (push) Successful in 16m27s
Added --yes/-y flag to the agents init CLI command to support non-interactive
initialization as specified in the documentation. When --yes is passed, all
interactive prompts are skipped and default values are applied. The command
produces the expected initialization summary output including data directory,
config file, database, and created directories.

The flag was added to both the top-level "agents init" command in main.py and
the "agents project init" subcommand in project.py. Both delegate to the shared
init_command() function which now accepts a yes parameter and produces
spec-aligned Rich panel output (Data Dir, Config, Database, Directories) with
the "Initialized (non-interactive)" status message when yes=True. When
yes=False (default), existing interactive behavior is preserved unchanged.

ISSUES CLOSED: #522
2026-03-07 15:07:17 +00:00