poweroff

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(args []string)

Main is the entrypoint into /sbin/poweroff.

Types

type Action added in v1.5.0

type Action string

Action is the action to be performed by the poweroff command.

const (
	// Shutdown is the action to shutdown the machine.
	Shutdown Action = "shutdown"
	// Reboot is the action to reboot the machine.
	Reboot Action = "reboot"
)

func ActionFromArgs added in v1.5.0

func ActionFromArgs(args []string) Action

ActionFromArgs returns the action to be performed based on the arguments.

Jump to

Keyboard shortcuts

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