osdetail

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: GPL-3.0 Imports: 6 Imported by: 0 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotSupported is returned when an operation is not supported on the current platform.
	ErrNotSupported = errors.New("not supported")
	// ErrNotFound is returned when the desired data is not found.
	ErrNotFound = errors.New("not found")
	// ErrEmptyOutput is a special error that is returned when an operation has no error, but also returns to data.
	ErrEmptyOutput = errors.New("command succeeded with empty output")
)

Functions

func GenerateBinaryNameFromPath

func GenerateBinaryNameFromPath(path string) string

GenerateBinaryNameFromPath generates a more human readable binary name from the given path. This function is used as fallback in the GetBinaryName functions.

func GetBinaryIconFromSystem

func GetBinaryIconFromSystem(path string) (string, error)

GetBinaryIconFromSystem queries the operating system for the associated icon for a given binary path.

func GetBinaryNameFromSystem

func GetBinaryNameFromSystem(path string) (string, error)

GetBinaryNameFromSystem queries the operating system for a human readable name for the given binary path.

func RunCmd added in v0.14.1

func RunCmd(command ...string) (output []byte, err error)

RunCmd runs the given command and run error checks on the output.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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