AI CLI tool that generates shell commands from natural language descriptions using OpenAI API.
# Install dependencies
go mod tidy
# Set environment variable
export OPENAI_TOKEN="your-openai-token"
# Build the project
make build- Build:
make build - Clean:
make clean - Lint:
make lint
Validation: After each change, run make lint to ensure code quality.
# Basic usage
./ai "find biggest file here"
# Verbose mode
./ai -v "list files in current dir"- Go standard formatting (gofmt)
- Follow golangci-lint rules
- Single responsibility functions
- Clear variable names