Closed closedLoop closed 3 months ago
This pull request introduces a new feature for bash completion using a language model. The changes include updates to the README.md file, the addition of several new scripts (autocomplete.sh, autocomplete_security.sh, run_tests.sh), a pre-commit configuration file, and a test script. The implementation involves creating a bash script that integrates with the OpenAI API to provide intelligent command completions based on the user's terminal context, command history, and environment variables.
Files | Changes |
---|---|
autocomplete.sh autocomplete_security.sh run_tests.sh |
Added new scripts for LLM-powered bash completion, user data sanitization, and test execution. |
.pre-commit-config.yaml tests/test_autocomplete.bats |
Added pre-commit configuration and test scripts to ensure code quality and functionality. |
Summary by Sourcery
This pull request introduces a new bash completion script
autocomplete.sh
that uses OpenAI API for generating command completions. It includes enhancements to the documentation, adds pre-commit hooks, and introduces tests to ensure the script runs correctly. Additionally, it removes the outdatedautocomplete_api.sh
script.autocomplete.sh
that leverages OpenAI API for generating command completions.autocomplete_security.sh
script to sanitize user data in command history.autocomplete.sh
to install, remove, enable, and disable the autocomplete script..bashrc
and managing configurations through a YAML file.README.md
with new installation instructions, configuration details, and additional context for the autocomplete script.shellcheck
to ensure shell script quality.README.md
to include detailed instructions on installation, configuration, and usage of the new bash completion script.tests/test_autocomplete.bats
to verify that the autocomplete script runs without errors.run_tests.sh
to execute the BATS tests.autocomplete_api.sh
script.