shell

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FnPrototype

type FnPrototype = func(Input) Output

type Input

type Input struct {
	BashScript string `json:"bash_code" jsonschema:"description=shell script"`
}

type Output

type Output struct {
	Error  string `json:"error,omitempty"`
	Result string `json:"result,omitempty"`
}

type Tool

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

func New

func New() *Tool

func (*Tool) Description

func (t *Tool) Description() string

func (*Tool) Fn

func (t *Tool) Fn() any

func (*Tool) Name

func (t *Tool) Name() string

func (*Tool) WithAskForConfirm

func (t *Tool) WithAskForConfirm(askForConfirm bool) *Tool

func (*Tool) WithShell

func (t *Tool) WithShell(shell string) *Tool

Jump to

Keyboard shortcuts

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