io

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheConversation

func CacheConversation(conversation string) error

Writes conversation to cache file

func DetectPackageManagers added in v1.2.1

func DetectPackageManagers() []string

returns a list of installed package managers from a predefined list.

func DisplayHelp

func DisplayHelp()

func DisplayVersion added in v1.2.2

func DisplayVersion(version string)

func ExtractHostnameCtlValue

func ExtractHostnameCtlValue(field string) (string, error)

Helper function to extract value from hostnamectl output

func GetFilePath

func GetFilePath(file string) (string, error)

func IsPackageManagerInstalled added in v1.2.1

func IsPackageManagerInstalled(name string) bool

checks if a given package manager is installed by looking for its executable in the system's PATH.

func ReadConversationCache

func ReadConversationCache() (string, error)

Reads conversation from cache file

func ReadFromKeyring

func ReadFromKeyring(field string) (string, error)

func ReadPipedInput

func ReadPipedInput() (string, error)

Helper function to check and read piped input

func RunCmd

func RunCmd(command string, args ...string) (string, error)

Helper function to run command and return trimmed output string

func SaveToKeyring

func SaveToKeyring(field string, val string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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