Skip to content
/ meh Public

Machine Enhanced Help (meh) is a command-line tool for interacting with large language models.

Notifications You must be signed in to change notification settings

cpcf/meh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meh

Overview

meh is a simple CLI tool that constructs and executes queries based on command-line arguments and piped input. It supports file-based input, configurable settings, persona selection, and an interactive TUI mode.

Usage

meh [options] [query]

Options

  • -f <file>: Read input from a specified file.
  • -c: Edit configuration settings.
  • -p <persona>: Select a persona.
  • -h: Display usage instructions.

Behavior

  1. Query Construction:
    • CLI arguments are combined with any piped input.
    • If a query is constructed, it is passed to the application.
  2. File Input (-f):
    • Reads input from a specified file and processes it as a query.
  3. Config Mode (-c):
    • Allows editing of configuration settings.
  4. Persona Selection (-p):
    • Assigns a predefined persona to the session.
  5. Interactive TUI Mode:
    • If no query is provided, a text-based user interface (TUI) is launched.
    • The TUI allows creating new personas, selecting an existing persona, and engaging in interactive chat.
  6. Help (-h):
    • Displays usage instructions.
  7. Error Handling:
    • Logs fatal errors if issues occur while reading input or processing commands.

Example Usage

meh "Hello World"
echo "piped input" | meh
meh -f input.txt
meh  # Launches the interactive TUI

Dependencies

  • go 1.23

Running the Application

go run meh.go [options] [query]

About

Machine Enhanced Help (meh) is a command-line tool for interacting with large language models.

Topics

Resources

Stars

Watchers

Forks

Languages