terminalAI

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT

README

Go Reference

Terminal AI

A command line tool that uses Gemini AI and OpenAI API to generate text and code.

Installation

git clone https://github.com/Elixir-Craft/terminalAI.git
cd terminalAI
go mod tidy

Build

go build -v -o out ./...  

Options

  • -i <input file> Input file path
  • -o <output file> Output file path
  • -p <Prompt> Prompt
  • -c Prompt from clipboard
  • chat Chat with AI
  • config Configure Services and API Keys

Set configurations

./terminalai config init

Usage

./terminalai "Generate Some Text"
./terminalai -p " $(tree -L 2) generate docker-compose file for this project" -o docker-compose.yaml 
./terminalai -i input.txt -p "Read the following text and generate a summary" -o output.txt

Chat (Currently only supports for Gemini)

./terminalai chat

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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