config

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindConfigFile

func FindConfigFile() (string, error)

Types

type Config

type Config struct {
	Endpoint string `env:"CLAI_ENDPOINT" cli:"endpoint" usage:"The API endpoint to use"`
	Token    string `env:"CLAI_TOKEN" cli:"token" usage:"The API token to use"`
	Model    string `env:"CLAI_MODEL" cli:"model" usage:"The model to use"`
	Shell    string `env:"CLAI_SHELL" cli:"shell" usage:"The target shell to generate commands for, empty for current shell"`
	OS       string `env:"CLAI_OS" cli:"os" usage:"The target OS to generate commands for, empty for current OS"`
	Phrase   string `arg:"1"`
}

Jump to

Keyboard shortcuts

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