add time command
This commit is contained in:
5
main.go
5
main.go
@@ -9,8 +9,9 @@ func commandsUsage() string {
|
||||
return fmt.Sprintf(
|
||||
`commands:
|
||||
path %v
|
||||
time %v
|
||||
week %v
|
||||
`, commandPathDescription, commandWeekDescription)
|
||||
`, commandPathDescription, commandTimeDescription, commandWeekDescription)
|
||||
}
|
||||
|
||||
func main() {
|
||||
@@ -18,6 +19,8 @@ func main() {
|
||||
switch os.Args[1] {
|
||||
case "path":
|
||||
commandPath(os.Args[1:])
|
||||
case "time":
|
||||
commandTime(os.Args[1:])
|
||||
case "week":
|
||||
commandWeek(os.Args[1:])
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user