Documentation ¶
Index ¶
- func CacheConversation(conversation string) error
- func DetectPackageManagers() []string
- func DisplayHelp()
- func DisplayVersion(version string)
- func ExtractHostnameCtlValue(field string) (string, error)
- func GetFilePath(file string) (string, error)
- func IsPackageManagerInstalled(name string) bool
- func ReadConversationCache() (string, error)
- func ReadFromKeyring(field string) (string, error)
- func ReadPipedInput() (string, error)
- func RunCmd(command string, args ...string) (string, error)
- func SaveToKeyring(field string, val string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheConversation ¶
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 ¶
Helper function to extract value from hostnamectl output
func GetFilePath ¶
func IsPackageManagerInstalled ¶ added in v1.2.1
checks if a given package manager is installed by looking for its executable in the system's PATH.
func ReadConversationCache ¶
Reads conversation from cache file
func ReadFromKeyring ¶
func ReadPipedInput ¶
Helper function to check and read piped input
func SaveToKeyring ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.