completion

package
v0.0.0-...-d6ae1de Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectShell

func DetectShell() string

func FormatSystemInfo

func FormatSystemInfo(info SystemInfo) string

func GetCurrentShell

func GetCurrentShell() (string, error)

func GetShellCommand

func GetShellCommand(shell, os string) (string, error)

func Handle

func Handle(question string, config utils.Config, store db.Store) error

Types

type Client

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

func NewClient

func NewClient(config utils.Config) *Client

func (*Client) Send

func (an *Client) Send(ctx context.Context, prompt string) (ret string, err error)

type ShellPrompt

type ShellPrompt struct {
	Shell string
	OS    string
}

type SystemInfo

type SystemInfo struct {
	OS              string
	Hostname        string
	Platform        string
	PlatformFamily  string
	PlatformVersion string
	CurrentShell    string
	OperatingSystem string
	Architecture    string
}

func GetSystemInfo

func GetSystemInfo() SystemInfo

Jump to

Keyboard shortcuts

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