Documentation
¶
Index ¶
- func Alert(s string)
- func Beep(n int)
- func Bell(n int)
- func CollectNetworkConfig() (map[string][]net.IP, error)
- func Confirm(ps string, choices []string, defaultChoice string, in io.Reader) (string, error)
- func DetectContentType(filePath string) (string, error)
- func FormatContent(format string, out *api.Output) (string, error)
- func GetEnvVarNames() string
- func GetMemoryChipInfo() (string, error)
- func GetOSInfo() (map[string]string, error)
- func GetRunningProcesses() ([]string, error)
- func GetShellInfo() (map[string]string, error)
- func IsExecutable(filePath string) bool
- func ListCommands() map[string]string
- func Notify(s string)
- func PrintImage(out io.Writer, imageFile string) error
- func Prompt(ps string, in io.Reader) (string, error)
- func Render(text string) string
- func Uname() (string, string)
- func ViewImage(imageFile string) error
- type Clipboard
- type CodeBlock
- type CpuInfo
- type DiskInfo
- type MarkdownDoc
- type MemoryStats
- type SystemInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectContentType ¶
func GetEnvVarNames ¶
func GetEnvVarNames() string
func GetMemoryChipInfo ¶
func GetRunningProcesses ¶
func GetShellInfo ¶
GetShellInfo determines the current shell and retrieves its version.
func IsExecutable ¶
func ListCommands ¶
ListCommands returns the full path of the first valid executable command encountered in the PATH environment variable.
Types ¶
type Clipboard ¶
type Clipboard struct{}
func NewClipboard ¶
func NewClipboard() *Clipboard
func (*Clipboard) Get ¶
Get tries to read from clipboard it will return empty string if clipboard is empty
type CpuInfo ¶
type CpuInfo struct {
CPU int32
VendorID string
ModelName string
Cores int32
Mhz float64
Usage []float64
}
CpuInfo holds information about a CPU.
func GetCpuInfo ¶
GetCpuInfo retrieves and returns information about the CPUs.
type DiskInfo ¶
type DiskInfo struct {
Device string
MountPoint string
Filesystem string
Total uint64
Used uint64
Free uint64
UsedPercent float64
}
func GetDiskInfo ¶
GetDiskInfo retrieves info about the disk usage.
type MarkdownDoc ¶
func ParseMarkdown ¶
func ParseMarkdown(markdownContent string) *MarkdownDoc
type MemoryStats ¶
func GetMemoryStats ¶
func GetMemoryStats() (*MemoryStats, error)
GetMemoryStats retrieves info about the memory usage.
type SystemInfo ¶
type SystemInfo struct {
OS string
Arch string
OSInfo map[string]string
ShellInfo map[string]string
UserInfo map[string]string
EnvVarNames string
}
func CollectSystemInfo ¶
func CollectSystemInfo() (*SystemInfo, error)
Click to show internal directories.
Click to hide internal directories.