pmset

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatteryStatus

func BatteryStatus() (batteryStatus string, err error)

BatteryStatus is a function used to get output of `pmset -g ps` command

func ExecuteCustomCommand

func ExecuteCustomCommand(args ...string) (output bytes.Buffer, err error)

ExecuteCustomCommand is a function used to execute custom commands like `pmset -g therm`. To call this function, only the arguments, for example, ExecuteCustomCommand("-g", "therm")

func ExecuteHelpCommand

func ExecuteHelpCommand() (output bytes.Buffer, err error)

ExecuteHelpCommand() is a function used to see the manual page of pmset command

Types

This section is empty.

Jump to

Keyboard shortcuts

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