Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

Types

type DisplayOptions

type DisplayOptions monitor.Options

type GPTScript

type GPTScript struct {
	runner.Options
	DisplayOptions
	Debug         bool   `usage:"Enable debug logging"`
	Quiet         *bool  `usage:"No output logging" short:"q"`
	Output        string `usage:"Save output to a file, or - for stdout" short:"o"`
	Input         string `usage:"Read input from a file (\"-\" for stdin)" short:"f"`
	SubTool       string `usage:"Use tool of this name, not the first tool in file"`
	Assemble      bool   `usage:"Assemble tool to a single artifact, saved to --output"`
	ListModels    bool   `usage:"List the models available and exit"`
	ListTools     bool   `usage:"List built-in tools and exit"`
	Server        bool   `usage:"Start server"`
	ListenAddress string `usage:"Server listen address" default:"127.0.0.1:9090"`
}

func (*GPTScript) Customize

func (r *GPTScript) Customize(cmd *cobra.Command)

func (*GPTScript) Pre

func (r *GPTScript) Pre(*cobra.Command, []string) error

func (*GPTScript) Run

func (r *GPTScript) Run(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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