Skip to content

refactor!: redesign the reprex mode interface - #318

Merged
eitsupi merged 4 commits into
mainfrom
feat/reprex-interface
Aug 19, 2026
Merged

eitsupi merged 4 commits into
mainfrom
feat/reprex-interface

Conversation

@eitsupi

@eitsupi eitsupi commented Aug 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • replace the independent reprex and auto-format booleans with off, on, and format modes
  • reorganize reprex configuration under [startup] and [reprex]
  • use explicit --reprex=<off|on|format> and :reprex on|off|format interfaces
  • move reprex runtime state out of prompt configuration and make formatter selection typed across interactive and script execution paths
  • derive formatter commands and unavailable-backend diagnostics from exhaustive backend metadata, with inline snapshots for each user-facing context
  • report all removed reprex configuration keys in a single arf config check run
  • update session information, banners, completions, generated schema, documentation, and regression tests

Breaking changes

The former [startup.mode] and [mode.reprex] tables, auto-format fields, --auto-format, :autoformat, and :format interfaces are removed without compatibility aliases. Removed configuration keys are detected before deserialization and reported together as validation errors instead of being silently ignored or revealed one at a time.

The new configuration shape is:

[startup]
reprex = "off"

[reprex]
comment = "#> "
formatter = "air"

[prompt.indicators]
reprex = "[reprex] "
reprex_format = "[format] "

Validation

  • cargo fmt --check
  • cargo test -p arf-console
  • cargo clippy -p arf-console --all-targets -- -D warnings
  • git diff --check

@eitsupi eitsupi changed the title Redesign the reprex mode interface refactor!: redesign the reprex mode interface Aug 19, 2026
@eitsupi
eitsupi marked this pull request as ready for review August 19, 2026 12:43
@eitsupi
eitsupi merged commit 48d1078 into main Aug 19, 2026
13 checks passed
@eitsupi
eitsupi deleted the feat/reprex-interface branch August 19, 2026 12:45
@eitsupi eitsupi mentioned this pull request Aug 19, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant