2020-05-05 07:52:35 +03:00
|
|
|
package date
|
|
|
|
|
|
|
|
import(
|
|
|
|
"fmt"
|
|
|
|
"time"
|
2023-12-14 21:42:01 +03:00
|
|
|
"github.com/di4f/cli/mtool"
|
2020-05-05 07:52:35 +03:00
|
|
|
)
|
|
|
|
|
2023-03-24 16:54:51 +03:00
|
|
|
func Run(flagSet *mtool.Flags) {
|
|
|
|
flagSet.Parse()
|
|
|
|
args := flagSet.Args()
|
2020-05-05 07:52:35 +03:00
|
|
|
|
2023-03-24 16:54:51 +03:00
|
|
|
if len(args) > 0 {
|
2020-05-05 07:52:35 +03:00
|
|
|
flagSet.Usage()
|
|
|
|
}
|
|
|
|
|
|
|
|
date := time.Now()
|
|
|
|
|
|
|
|
fmt.Println(date)
|
|
|
|
|
|
|
|
}
|