cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Revision = "HEAD"
View Source
var Version string

Functions

func Chat

func Chat(opt *ChatOption) error

func Config

func Config(editor string, setting bool, profile bool) error

Types

type ChatOption

type ChatOption struct {
	APIKey         string
	OrganizationID string
	Editor         string
	Model          string
	Role           string
	ChatLogDir     string
	FileNameFormat string
	File           *string
	Continue       bool
	Template       *oax.ChatTemplate
}

type VersionFlag

type VersionFlag string

func (VersionFlag) BeforeApply

func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error

func (VersionFlag) Decode

func (v VersionFlag) Decode(ctx *kong.DecodeContext) error

func (VersionFlag) IsBool

func (v VersionFlag) IsBool() bool

Jump to

Keyboard shortcuts

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