Menu ▾ ▴

#54 feat(cli): add guided init and TOML secret files

closed
nobody
None
2026-09-20
2026-09-20
Anonymous
No

Originally created by: thomijasir

Summary

  • Add a guided zero-argument dopbase init flow that reads ./.env, summarizes detected variables without exposing values, creates the project and environment atomically, and safely offers to delete the source file.
  • Keep the explicit initialization flow for automation and add TOML support to init, import, and export, including .toml inference, strict flat string mappings, deterministic output, and secret-safe parser errors.
  • Add a top-level README CLI reference and a bun run clean helper for removing Rust build artifacts.
  • Update CLI help, tests, guides, and the changelog for both secret import workflows.

Closes [#53].

Compatibility

No breaking changes or migration steps. Existing explicit init, dotenv, JSON, YAML, Docker export, database, and HTTP API behavior remain unchanged. TOML support and the cleanup helper are additive.

Verification

  • cargo test --manifest-path app/Cargo.toml --locked --all-targets
  • cargo clippy --manifest-path app/Cargo.toml --locked --all-targets --all-features -- -D warnings
  • cargo fmt --manifest-path app/Cargo.toml -- --check
  • bunx prettier --check on the updated documentation files
  • bun run build:docs
  • codegraph sync
  • bun run clean was not run because it only removes local build artifacts.

Checklist

  • [x] I kept this pull request focused on one problem.
  • [x] I added or updated tests for behavior changes, or explained why tests are not needed.
  • [x] I updated the documentation and CHANGELOG.md when public behavior changed, or explained why they are not needed.
  • [x] I updated relevan documentation inside /docs

Related

Tickets: #53

Discussion

  • Anonymous

    Anonymous - 2026-09-20

    Ticket changed by: dopbase

    • status: open --> closed
     

Log in to post a comment.