can

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 10 Imported by: 0

README

can - command line interface to openai

can logo

If you don't know which can I'm referring to; read the book Expeditionary Forces.

OpenAI API-Reference

Quick start

$ go install github.com/gregoryv/can@latest
$ can --help
Usage: can [OPTIONS]

Options
    -in : ""
        path to file or block of text

    --api-key-file, $OPENAI_API_KEY_FILE : "/home/gregory/.openai.key"
    --debug
    -h, --help

Examples
    Ask a question
    $ can why is the number 42 significant?

    Provide context
    $ can correct spelling -in ./README.md
    $ can correct spelling -in "hallo warld"

can demo

Documentation

Overview

Command can provides access to openai API's from the terminal.

Jump to

Keyboard shortcuts

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