0.0.12 • Published 10 months ago

gptflow v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

gptFlow

gptFlow is a command-line interface (CLI) tool that integrates with ChatGPT, allowing you to process text streams via the shell.

Features

  • Seamlessly pipe input and output through ChatGPT.
  • Simple CLI usage via Bun or npx.
  • Easily customizable with shell scripts.

Installation

Install using npm:

npm install -g gptflow

Alternatively, you can use it directly with bun or npx.

Usage

Basic Example

Pipe text to gptflow:

echo "hello" | bunx gptflow
# Output: hello, how can i assist you today

Or with npx:

echo "hello" | npx gptflow
# Output: hello, how can i assist you today

Using shell scripts

You can create comprehensive shell scripts to automate tasks. Here are examples:

example.sh

bunx globflow *.{ts,json,sh} --md -m "Given the file list, write a README.md for this project, dont explain just give me md" | bunx gptflow | tee README.md

bunx globflow@0.0.2 *.{ts,json,sh,md} --md -m "Given the file list, optimize the README.md for this project, dont explain just give me md" | bunx gptflow@0.0.4 | tee README.md

spec.sh

#!/usr/bin/env bun
echo hello | bunx gptflow
# hello, how can i assist you today

echo hello | npx gptflow
# hello, how can i assist you today

echo hello | bun cli.ts
# hello, how can i assist you today

Development

Building the project

Build the project using the provided scripts:

bun run build

Running tests

Execute tests using:

bun run test

Contributing

Feel free to submit issues or pull requests. Check out the issues page for open issues.

Changelog

See the CHANGELOG.md for details on changes made in each release.

License

This project is licensed under the MIT License. See the LICENSE file for details.

0.0.12

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago