commands

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsSudo added in v1.2.1

func ContainsSudo(commands []string) bool

Function to detect if any of the commands are being ran as sudo

func HighlightCommands

func HighlightCommands(responseContent string) string

Function to highlight all occurrences of @run[<COMMAND>] in the responseContent

func ParseCommands

func ParseCommands(responseContent string) []string

Function to parse commands from the response @run[<COMMAND>]

func RunCommands

func RunCommands(commands []string)

Run commands from model

Types

This section is empty.

Jump to

Keyboard shortcuts

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