Overview
CLInvestigator is a powerful AI-driven Command Line Interface (CLI) tool designed
to streamline the coding
process for developers. It intelligently resolves dependency conflicts, ensuring smooth package
installations and project setup. The tool offers in-depth code reviews, identifying potential errors,
inefficiencies, and best practices to improve code quality. Additionally, it generates helpful code
snippets, reducing development time and effort.
Beyond that, CLInvestigator provides real-time linting to enforce coding standards, debugging assistance to
quickly pinpoint and fix issues, and customizable shortcut management for an optimized workflow. It also
features an intelligent terminal integration, allowing developers to interact seamlessly with AI-powered
suggestions, making coding faster and more efficient. Whether you're working on a complex project or just
need quick fixes, CLInvestigator enhances productivity by automating and simplifying key development tasks.
Getting Started
Step 1: Accessing CLInvestigator
After installation, check available commands using:
npx ohmyfix --help
β
This command will display all available features and options.
Step 2: Running the CLI
π§ Fixing Errors in a Specific File
To automatically detect and fix errors in a JavaScript file, run:
npx ohmyfix file.js --shortcut
This applies intelligent fixes to common issues and optimizes the code structure.
π€ Performing an AI-Powered Code Review
Analyze your code with AI-driven suggestions for improvement:
npx ohmyfix ai file.js
This scans the file for best practices, potential bugs, and optimizations.
π Debugging a File
For real-time debugging insights, run:
npx ohmyfix debug file.js
This highlights issues and offers debugging suggestions.
Now you're ready to supercharge your development workflow with CLInvestigator! π
Terminal Integration
CLInvestigator also includes an AI-powered terminal that enhances the CLI experience with:
- Real-time AI suggestions
- Command autocompletion
- Instant error resolution
Installing the Terminal
Download the terminal from the official GitHub repository: Github Link
Follow the installation guide provided in the repository to set up and configure the terminal.
Troubleshooting
When using CLInvestigator, you might encounter certain
issues while setting up or running
commands. Below are some common problems along with their solutions.
π Issue: "Command not found"
If you see a "command not found" error when trying to run
ohmyfix
it
usually means the installation wasn't successful or npm
isn't configured correctly.
β
Solution:
- Ensure Node.js and npm are installed. You can check their
versions:
node -v
npm -v
- If missing, install the latest Node.js.
- Reinstall CLInvestigator globally:
npm install -g ohmyfix
npx ohmyfix --help
π Issue: API key setup failure
If you face errors while setting up the Google Generative AI API
key, follow these
steps:
β
Solution:
- Double-check that your API key is valid and correctly entered.
- Ensure you have an active internet connection.
- Re-run the setup command:
npx ohmyfix setup
>
Contributions
We welcome and appreciate contributions from developers who want
to enhance
CLInvestigator. Whether youβre fixing bugs, adding features, or improving documentation,
your help makes this tool better for everyone!
How to Contribute
- Fork the Repository: Visit our GitHub Repository and click "Fork".
- Create a New Branch: Use this naming convention:
git checkout -b feature/new-feature
- Make Your Changes: Implement features, fix bugs, or update documentation.
- Commit Your Changes: Use a clear commit message:
git commit -m "Added new feature: feature description"
- Push and Create a Pull Request:
git push origin feature/new-feature
Open a Pull Request (PR) on GitHub.
Support
If you encounter any issues or need assistance:
License
CLInvestigator is open-source and licensed under
the MIT
License. Feel free to use, modify, and distribute it while following the
license terms.
π Read the full MIT License.
π Happy Coding with CLInvestigator! π