Documentation home · User manual · Bash guide · PowerShell guide
Created: 2025-12-29 Last Updated: 2026-07-28 Framework: cli-fp Coverage: Bash and PowerShell completion documentation
This directory contains current user guides plus historical completion test and development records. The dated test reports describe the implementation at the time they were written; use the user guides and the main user manual for current behavior.
-
BASH_COMPLETION_GUIDE.md - Complete user guide for Bash completion
- Installation instructions
- How completion works
- Common patterns and usage
- Tips and tricks
- Troubleshooting
-
PS_COMPLETION_GUIDE.md - Complete user guide for PowerShell completion
- Installation instructions
- Completion behavior and common patterns
- PowerShell version notes
- Troubleshooting
-
BASH_COMPLETION_TESTS.md - 30 manual test cases for Bash completion
- Test commands and expected results
- Actual test output (filled in during testing)
- Pass/fail status for each test
-
BASH_COMPLETION_TEST_SUMMARY.md - Analysis of test results
- Test statistics
- Bug fixes applied
- Explanation of expected vs actual behavior
- Recommendations for improvements
-
PS_COMPLETION_TESTS.md and PS_COMPLETION_SUMMARY.md - Historical PowerShell test cases and results
-
VERIFY_FIX.md - Quick verification steps for bug fixes
- Test commands to verify the root-level flag completion fix
- Actual test results showing the fix works
- All verification tests passed! ✅
-
test_fix.md - Quick test script for the root-level flag completion fix
- Before/after comparison
- What was fixed and why
- COMPLETION_WORK_SUMMARY.md - Overall work summary
- All phases of work completed
- Statistics and results
- Files created/modified/deleted
- Next steps
Date: December 29, 2025 Framework: cli-fp Shell: Git Bash (Bash 4.x) Test Application: SubCommandDemo.exe
- Total Tests: 30
- Passing: 26 (87%)
- Real Bugs Found: 1
- Real Bugs Fixed: 1 ✅
- Status at the time: All tests passing correctly!
Root-level flag completion (e.g., ./app --h[TAB]) now works correctly.
- File Modified:
src/cli.application.pas - Fix: Added check for flags starting with
-before attempting command matching
Start with BASH_COMPLETION_GUIDE.md or PS_COMPLETION_GUIDE.md to learn how to use shell completion effectively.
- Review BASH_COMPLETION_TESTS.md for the test suite
- Run tests manually in your shell
- Fill in actual results
- Compare with BASH_COMPLETION_TEST_SUMMARY.md for expected behavior
- COMPLETION_WORK_SUMMARY.md - Overview of all work done
- BASH_COMPLETION_TEST_SUMMARY.md - Technical analysis of completion behavior
- test_fix.md - Specific bug fix details
Potential future coverage:
- Zsh completion testing
- Fish shell completion testing
subcommanddemo_completion.bash- Generated Bash completion scriptsimpledemo_completion.bash- Generated Bash completion scriptsubcommanddemo_completion.ps1- Generated PowerShell completion script
Checked-in generated scripts may be release snapshots. Regenerate them from the current executable before installation.
src/cli.application.pas- Contains__completeimplementation and script generatorsHandleCompletion()- Main completion handlerDoComplete()- Completion logicOutputBashCompletionScript()- Bash script generatorOutputPowerShellCompletionScript()- PowerShell script generator
If you find issues with shell completion:
- Add or update an automated test in the main test suite
- Document expected vs actual behavior
- Create an issue with test results
- Reference the relevant guide or historical test record in bug reports
These test documents are part of the cli-fp framework and follow the same license.