command

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Run(openai.OpenaiApi)
}

type CommandService

type CommandService struct {
	// contains filtered or unexported fields
}

func NewCommandService

func NewCommandService(c Command, o openai.OpenaiApi) *CommandService

func (*CommandService) Execute

func (cs *CommandService) Execute()

type InteractiveCommand

type InteractiveCommand struct {
	// contains filtered or unexported fields
}

func NewInteractiveCommand

func NewInteractiveCommand(scanner *bufio.Scanner) *InteractiveCommand

func (*InteractiveCommand) Run

func (c *InteractiveCommand) Run(openai openai.OpenaiApi)

type SimpleCommand

type SimpleCommand struct {
	// contains filtered or unexported fields
}

func NewSimpleCommand

func NewSimpleCommand(query *string) *SimpleCommand

func (*SimpleCommand) Run

func (p *SimpleCommand) Run(openai openai.OpenaiApi)

Jump to

Keyboard shortcuts

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