Skip to content

feat: enable command borders and report by default#4632

Open
cidrblock wants to merge 2 commits intoansible:mainfrom
cidrblock:feat/enable-borders-and-report-by-default
Open

feat: enable command borders and report by default#4632
cidrblock wants to merge 2 commits intoansible:mainfrom
cidrblock:feat/enable-borders-and-report-by-default

Conversation

@cidrblock
Copy link
Copy Markdown

Summary

  • Promote --command-borders and --report from experimental flags (default: disabled) to stable features (default: enabled).
  • Remove the EXPERIMENTAL: prefix from their help text and re-sort them into the standard options section.
  • Update fallback defaults in config.py and base.py to match the new Click defaults.
  • Remove now-redundant --report --command-borders from all doc examples across 3 files (~38 commands).
  • Update all affected unit tests for the new default values and option sort order.

Users who prefer the old behavior can pass --no-command-borders / --no-report, or set MOLECULE_COMMAND_BORDERS=false / MOLECULE_REPORT=false.

Test plan

  • Verify molecule test shows command borders and report by default (no flags needed)
  • Verify molecule test --no-command-borders --no-report disables both features
  • Verify MOLECULE_REPORT=false MOLECULE_COMMAND_BORDERS=false molecule test disables both via env
  • Run python -m pytest tests/unit/command/test_base.py -v to confirm env/CLI precedence tests pass
  • Run python -m pytest tests/unit/test_click_cfg.py -v to confirm option metadata and sort order tests pass
  • Run python -m pytest tests/unit/dependency/ -v to confirm dependency tests pass with new defaults

Made with Cursor

Promote --command-borders and --report from experimental flags
(default: disabled) to stable features (default: enabled). Users
who prefer the old behavior can pass --no-command-borders or
--no-report, or set the MOLECULE_COMMAND_BORDERS=false /
MOLECULE_REPORT=false environment variables.

- Change default from False to True for both options in click_cfg.py
- Remove experimental=True so help text no longer shows EXPERIMENTAL prefix
- Update fallback defaults in config.py and base.py to match
- Update all affected unit tests for new defaults and sort order
- Remove redundant --report --command-borders from doc examples

Made-with: Cursor
Move report and command_borders from the experimental_options list
to the non_experimental_options list in the test, matching the
change to remove their experimental flag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant