Skip to content

miklosme/explain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Explain Files

Tiny CLI utility to use OpenAI's GPT to explain code

Usage

# basic
$ npx explain-files@latest

# skip the file selector
$ npx explain-files@latest spaghetti.js

# only show .ts and .tsx files in the file selector
$ npx explain-files@latest --ext ts --ext tsx

Options

-h, --help              Shows this help message
-v, --version           Shows the version number
-e, --ext               Only consider files with the given extension
-f, --filter            Only consider files that include the given string
--cwd                   The directory to run in (defaults to ./)
-m, --model             The model to use
-t, --temperature       The temperature to use
-p, --prompt            The prompt to use
-mt, --max-tokens       The maximum number of tokens to use
-r, --reset-key         Resets the OpenAI API key by deleting ~/.explain-config

License

MIT

About

CLI utility to use OpenAI's GPT to explain code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published