This repository has been archived on 2025-08-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
redtime/cmd_status.go

24 lines
289 B
Go

package main
import (
"fmt"
"os"
)
func doStatus() {
var spool spoolfile
exists, err := spool.Exists()
if err != nil {
panic(err)
}
if !exists {
fmt.Println("No task is active")
os.Exit(1)
}
if err := spool.ReadToDefault(); err != nil {
panic(err)
}
spool.Print()
}