feat(v0.6.0): CLI maturity — aligned tables, progress bars, retry, verbose logging#73
Merged
Merged
Conversation
The rustsec/audit-check@v2 action builds cargo-audit from source on every run. On ARM runners this compiles aws-lc-sys (C/ASM) which is slow (~5min) and fragile (sensitive to /tmp state). Switch to the same approach used by the main dakera repo: dtolnay/rust-toolchain + rust-cache + conditional cargo install. Also adds CVSS >= 7.0 gate so low-severity advisories don't block CI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
aws-lc-sys assembly compilation is broken on the ARM runner (assembler can't create output files for aarch64 crypto modules). Since cargo-audit only scans Cargo.lock and doesn't need ARM-specific builds, move the audit job to x64 where cargo-audit builds and caches correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ose logging - comfy-table v7: aligned column headers replace JSON fallback in --format table - indicatif v0.17: progress bar with spinner/ETA for dk vector upsert --file - Context struct: threads url/format/verbose through all 14 command modules - retry.rs: exponential backoff (100ms/500ms/2s), 4xx errors never retried - cli.rs: extracted all build_*_command() from main.rs → main.rs now ~125 lines - output.rs: render_table() with dynamic column width, bold cyan headers - Verbose HTTP logging: --> request / <-- response with elapsed ms via tracing - .gitignore: added *.db / ruvector.db exclusion - CHANGELOG.md: v0.6.0 entry Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
comfy-table v7):--format tablenow renders properly aligned columns with bold cyan headers instead of falling back to JSON pretty-print across all 14 command modules.indicatif v0.17):dk vector upsert --file big.jsonshows a spinner, elapsed time, item count, and ETA for large batches.--verboseflag now logs-->request and<--response lines with elapsed milliseconds via the newContextstruct.src/retry.rs): transient network errors retried up to 3 times with 100ms/500ms/2s delays; 4xx errors never retried.src/context.rs: newContextstruct threadsurl,format,verbosethrough all command modules — eliminates per-call argument threading.src/cli.rs: allbuild_*_command()builder functions extracted frommain.rs, reducing it from ~1,400 lines to ~125 lines.CI Validation (x64 runner — 178.104.227.173)
Files Changed
Cargo.toml: version 0.5.5 → 0.6.0, addedcomfy-table = "7"andindicatif = "0.17"src/main.rs: reduced from ~1,400 → ~125 lines (routing + init only)src/cli.rs(new): allbuild_*_command()functionssrc/context.rs(new):Contextstruct withlog_request/log_responsesrc/retry.rs(new):with_backoff()with 6 unit testssrc/output.rs:render_table()withcomfy-tableexecute(ctx: &Context, matches)signature.gitignore: added*.db/ruvector.dbCHANGELOG.md: v0.6.0 entryRollback Plan
git revert HEAD + redeploy— no DB migrations, no schema changes.🤖 Generated with Claude Code