closedloop-technologies / autocomplete-sh

Large language model in the terminal! Less `--help` and `man` and more getting stuff done
MIT License
42 stars 2 forks source link

Feat/bash completion #2

Closed closedLoop closed 3 months ago

closedLoop commented 3 months ago

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 outdated autocomplete_api.sh script.

sourcery-ai[bot] commented 3 months ago

Reviewer's Guide by Sourcery

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.

File-Level Changes

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.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://sourcery.ai/dashboard): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.