Skip to content
This repository was archived by the owner on Jun 30, 2020. It is now read-only.

stephen-fox/power

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

power

What is it?

A Go library for managing power states.

How do I use it?

If you would like the library:

go get github.com/stephen-fox/power

Or if you would like the command line application:

go get github.com/stephen-fox/power/command

Library API

  • Restart - Restarts the machine
  • Shutdown - Shuts the machine down
  • Sleep - Puts the machine to sleep

Command line application usage

Example: power -h

Specify action with second argument: <application> [-s, -r, -o]
     -s     Sleep the machine
     -r     Restart the machine
     -o     Power the machine off

About

A Go library for managing power states.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages