Seddle is a command-line tool that updates text files using natural language instructions powered by OpenAI's GPT-4 model.
Seddle makes it easy to modify text files using plain English instructions. Instead of writing complex sed commands or regular expressions, you can simply describe what changes you want to make to your file, and seddle will use OpenAI's GPT-4 to interpret and apply those changes.
go install github.com/kellyp/seddle@latest- Go 1.23 or higher
- OpenAI API key
# Using command line flags
seddle -f path/to/file.txt -i "your instruction" -k your-api-key
# Using environment variable for API key
export OPENAI_API_KEY=your-api-key
seddle -f path/to/file.txt -i "your instruction"# Add a new section to a markdown file
seddle -f README.md -i "Add a Usage section after the Installation section"
# Update configuration in a JSON file
seddle -f config.json -i "Change the port number to 3000"
# Modify text content
seddle -f document.txt -i "Replace all instances of 'customer' with 'client'"- Natural language instructions for file modifications
- Supports any text file format
- Creates backup files with
.updatedextension - Environment variable support for API key
- Simple command-line interface
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- Built with OpenAI API
- Uses Cobra for CLI interface