- I think it would be better if one for commands only, one for the spec handling core logic so people won't be confused by the core logic inside the commands folder (cleaner I guess) - Regen docs
24 lines
943 B
Go
24 lines
943 B
Go
package sys
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "date",
|
|
Description: "Display or set date and time",
|
|
Options: []spec.Option{
|
|
{Name: "-d", Description: "Set the kernel's value for daylight saving time"},
|
|
{Name: "-f", Description: "The format with which to parse the new date value"},
|
|
{Name: "-j", Description: "Don't try to set the date"},
|
|
{Name: "-n", Description: "Only set time on the current machine, instead of all machines in the local group"},
|
|
{Name: "-R", Description: "Use RFC 2822 date and time output format"},
|
|
{Name: "-r", Description: "Number of seconds since the Epoch (00:00:00 UTC, January 1, 1970)"},
|
|
{Name: "-t", Description: "Set the system's value for minutes west of GMT"},
|
|
{Name: "-u", Description: "Display or set the date in UTC (Coordinated Universal) time"},
|
|
{Name: "-v", Description: "[+|-]val[ymwdHMS]"},
|
|
},
|
|
})
|
|
}
|