A command-line interface (CLI) tool designed to assist Linux users in recalling and utilizing commands more effectively.
linux-help leverages AI to understand your needs and provides relevant commands, which you can then easily paste into your terminal.
go build -ldflags "-w" -o linux-help
cp linux-help ~/.local/bin/linux-help "find files modified today"
linux-help "list all files in a directory"
The AI will provide suggested commands. You can then choose to copy and paste the desired command in the terminal.
To generate your Gemini API Key => https://ai.google.dev/gemini-api/docs/api-key
❯ export GEMINI_API_KEY=[your key]
❯ linux-help "to list 10 process consume most cpu and memory"
ps aux --sort=-%mem,-%cpu | head -n 11 | tail -n 10
❯ [SHIFT+CTRL+V] to paste the command- AI-Powered Command Suggestions: Uses AI to understand your natural language queries and suggest relevant Linux commands.
- Easy Command Pasting: Streamlines the process of using the suggested command in your terminal. (Explain how this works - e.g., copying to clipboard, printing the command for manual copy, or direct execution).
- Command History (Optional): (If implemented) Keeps track of your previous queries and suggested commands for quick access.
- Extensible (Optional): (If applicable) Allows users to add custom commands or improve the AI's knowledge base.
- Cross-Platform (Linux): Designed specifically for Linux environments. (Mention any dependencies or specific Linux distributions if needed)
Contributions are welcome! Please feel free to submit pull requests, bug reports, or feature suggestions.
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes.
- Commit your changes and push the branch.
- Submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Author: FragZero
- Email: fragzero@fragzero.com.br
To run the tests for this project, use the following command:
go test -v ./...This will execute all the test functions defined in the main_test.go file and provide detailed output for each test case.