🚧 Add cool-down command
This commit is contained in:
parent
2552adbd3e
commit
2d70d8994e
3 changed files with 77 additions and 0 deletions
16
cmd/cool-down/main.go
Normal file
16
cmd/cool-down/main.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"codeberg.org/danjones000/utils/chill"
|
||||
e "codeberg.org/danjones000/utils/cli/err"
|
||||
"codeberg.org/danjones000/utils/cli/spin"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx := chill.Chill(context.Background())
|
||||
s := spin.Spin(ctx, "Waiting for CPU to cool...")
|
||||
err := s.Wait()
|
||||
e.HandleErr(err)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue