Skip to content

docs(style[shell]): Standardize shell code blocks#535

Merged
tony merged 3 commits intomasterfrom
docs-cmd-cleanup
Mar 15, 2026
Merged

docs(style[shell]): Standardize shell code blocks#535
tony merged 3 commits intomasterfrom
docs-cmd-cleanup

Conversation

@tony
Copy link
Member

@tony tony commented Mar 15, 2026

Summary

  • Add shell command formatting rules to AGENTS.md (console tag, $ prefix, line continuations)
  • Standardize all shell code blocks in docs/cli/completion.md and CHANGES

Changes

  • AGENTS.md: Add "Shell Command Formatting" section, update "Code Blocks" multi-command guidance
  • docs/cli/completion.md: Fix bash/zshconsole tags, add $ prefix (preserves .bashrc/.zshrc content blocks)
  • CHANGES: Fix sh/bashconsole tags, add $ prefix, fix migration table block

tony added 2 commits March 15, 2026 04:50
why: Standardize shell code blocks for copy-pastability and readability
what:
- Add console language tag + $ prefix rule
- Add line continuation rule for wide multi-flag commands
- Scope to documentation shell examples, not doctests
why: Improve copy-pastability and readability of shell examples
what:
- Ensure all shell blocks use console tag with $ prefix
- Fix docs/cli/completion.md shtab examples
- Fix CHANGES shell examples
- Convert non-command bash block to plain code block
@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.24%. Comparing base (b8f81d3) to head (b711393).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #535   +/-   ##
=======================================
  Coverage   84.24%   84.24%           
=======================================
  Files          29       29           
  Lines        3795     3795           
  Branches      756      756           
=======================================
  Hits         3197     3197           
  Misses        378      378           
  Partials      220      220           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

why: Apply the line-splitting rule from Shell Command Formatting guidelines
what:
- Split pipx install command in CHANGES header
- Split long jq pipe commands in README.md and docs/cli/status.md
@tony tony marked this pull request as ready for review March 15, 2026 11:07
@tony tony merged commit b7b72d9 into master Mar 15, 2026
8 checks passed
@tony tony deleted the docs-cmd-cleanup branch March 15, 2026 11:44
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