cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "frybot",
	Short: "A chatGPT bot that answers helpful questions about local files",
	Long: `frybot has two primary functions:
	1. prompt: a one-off question about local files
	2. chat: a chatbot that can answer multiple questions interactively and give you
		a conversation history to review and save.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func AddFrybotCommand

func AddFrybotCommand(parent *cobra.Command)

AddFrybotCommand binds the frybot root command to the parent command. Use this to integrate this package into your own CLI.

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func FindMatchingFiles added in v0.1.0

func FindMatchingFiles(pattern string) ([]string, error)

func IsIgnorableFile

func IsIgnorableFile(file fs.DirEntry) bool

func PromptAboutFile

func PromptAboutFile(prompt string, model frybot.Models, filePaths []string)

PromptAboutFile prompts the bot about a file

func PromptAboutWorkingDirectory

func PromptAboutWorkingDirectory(prompt string, model frybot.Models)

PromptAboutWorkingDirectory prompts the bot about the working directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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