rmit

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 13 Imported by: 0

README

rmit (Open Router Auto Commit)

rmit is a CLI tool that uses the OpenRouter API to generate custom commit messages based on the changes in your git repository.

Features

  • Generate descriptive commit messages with AI
  • Option to automatically commit changes
  • Configuration management for API keys and settings

Configuration

rmit supports storing configuration values such as API keys, API URL, and default model in a JSON configuration file in your home directory (~/.rmitconfig).

Setting Configuration Values

Use the set command to configure rmit:

# Set your OpenRouter API key
rmit set api_key YOUR_API_KEY

# Set a custom API URL (optional)
rmit set api_url https://custom-endpoint.example.com/v1/chat/completions

# Set default model to use
rmit set default_model openai/gpt-4
Getting Configuration Values

Use the get command to view your current configuration:

# View all configuration values
rmit get

# View specific configuration values
rmit get api_url
rmit get default_model

Usage

Basic Usage

Simply run rmit in your git repository to generate a commit message based on the current changes:

rmit
Auto-Commit

Use the -c flag to automatically create a commit with the generated message:

rmit -c
Custom Model

Specify a different model with the -m flag:

rmit -m openai/gpt-4

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL