https://github.com/moviendome/qq_cli
Automate and Simplify Tasks in Development Environments Executing Context-Aware Commands
https://github.com/moviendome/qq_cli
automation cli developer-tools nodejs rails rust
Last synced: 6 months ago
JSON representation
Automate and Simplify Tasks in Development Environments Executing Context-Aware Commands
- Host: GitHub
- URL: https://github.com/moviendome/qq_cli
- Owner: moviendome
- License: mit
- Created: 2024-01-01T11:31:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T02:54:43.000Z (almost 2 years ago)
- Last Synced: 2024-12-28T21:21:10.285Z (over 1 year ago)
- Topics: automation, cli, developer-tools, nodejs, rails, rust
- Language: Rust
- Homepage: https://moviendo.me/qq-cli/
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QQ CLI
```
________ ________ ________ ___ ___
|\ __ \|\ __ \ |\ ____\|\ \ |\ \
\ \ \|\ \ \ \|\ \ \ \ \___|\ \ \ \ \ \
\ \ \\\ \ \ \\\ \ \ \ \ \ \ \ \ \ \
\ \ \\\ \ \ \\\ \ \ \ \____\ \ \____\ \ \
\ \_____ \ \_____ \ \ \_______\ \_______\ \__\
\|___| \__\|___| \__\ \|_______|\|_______|\|__|
\|__| \|__|
```


[](https://opensource.org/licenses/MIT)
Context-aware CLI that runs the right commands for your project type.
## Installation
```bash
git clone https://github.com/moviendome/qq_cli.git
cd qq_cli
make build && make install
```
## Usage
```bash
qq # Interactive mode with autocomplete
qq start # Run command directly
qq --help # Show help
```
## Supported Projects
| Project | Detection |
|---------|-----------|
| Rails | `Gemfile` |
| Middleman | `Gemfile` + `source/` |
| Next.js | `package.json` + `next.config.{js,mjs,ts}` |
| Node.js | `package.json` |
| Rust | `Cargo.toml` |
## Commands
### Project Commands
| Command | Alias | Rails | Middleman | Next.js | Node.js | Rust |
|---------|-------|-------|-----------|---------|---------|------|
| `install` | `i` | `bundle install` | `bundle install` | `npm install` | `npm install` | `cargo build` |
| `start` | `s` | `bin/dev` or `bin/rails s` | `bundle exec middleman serve` | `npm run dev` | `npm start` | `cargo run` |
| `test` | `t` | `bin/rspec` or `bin/rails test` | - | `npm test` | `npm test` | `cargo test` |
| `console` | `c` | `bin/rails c` | - | - | - | - |
| `migrate` | `m` | `bin/rails db:migrate` | - | - | - | - |
| `routes` | `r` | `bin/rails routes` | - | - | - | - |
| `deploy` | `d` | `kamal deploy` * | `kamal deploy` * | `kamal deploy` * | `kamal deploy` * | `kamal deploy` * |
\* Available when `.kamal` directory exists
### Git Commands
| Command | Action |
|---------|--------|
| `g` | `git status` |
| `gl` | `git log` |
| `gp` | `git pull` |
| `gP` | `git push` |
| `gm` | `git checkout main` |
| `ga` | `git commit --amend --no-edit` |
## Examples
```bash
# In a Rails project
$ qq start
Detected: Rails
# Runs: bin/dev
# In a Next.js project
$ qq test
Detected: NextJS
# Runs: npm test
# In a Rust project
$ qq i
Detected: Rust
# Runs: cargo build
```
## Support
[](https://www.buymeacoffee.com/moviendome)
## License
MIT