Skip to content

Commit cce3b8c

Browse files
committed
升级依赖版本
1 parent f2bd224 commit cce3b8c

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* 最小设置单位为秒
1010

1111

12-
### 使用方法
12+
### 使用方法
1313

1414
1. 构建对应系统的文件。交叉编译可查看文档 `/docs/go-build.md`
1515

@@ -26,7 +26,7 @@ main.exe cron --conf="./cron.json" --debug
2626

2727
查看当前版本号
2828
```go
29-
main.exe cron ver
29+
main.exe cron version
3030
```
3131

3232
3. 配置使用

cron.log

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +0,0 @@
1-
{"level":"info","time":"2023-01-10T13:13:37+08:00","caller":"D:/app/workroom/go/go-app/project/doak-cron/pkg/parse/parse.go:231","message":"[debug]url: http://test.test1000.com/13.php, method: POST, res: Upload: cron.log<br />Type: application/octet-stream<br />Size: 0 Kb<br />Stored in: C:\\Windows\\phpF04E.tmp"}
2-
{"level":"info","time":"2023-01-10T13:13:40+08:00","caller":"D:/app/workroom/go/go-app/project/doak-cron/pkg/parse/parse.go:231","message":"[debug]url: http://test.test1000.com/12.php, method: GET, res: success - a data"}
3-
{"level":"error","time":"2023-01-10T13:13:40+08:00","caller":"D:/app/workroom/go/go-app/project/doak-cron/pkg/parse/parse.go:87","message":"[cmd]exec: \"doak-cron.exe\": executable file not found in %PATH%"}
4-
{"level":"info","time":"2023-01-10T13:13:40+08:00","caller":"D:/app/workroom/go/go-app/project/doak-cron/pkg/parse/parse.go:91","message":"[debug]cmd: doak-cron.exe, res: "}
5-
{"level":"info","time":"2023-01-10T13:13:42+08:00","caller":"D:/app/workroom/go/go-app/project/doak-cron/pkg/parse/parse.go:231","message":"[debug]url: http://test.test1000.com/13.php, method: POST, res: Upload: cron.log<br />Type: text/plain<br />Size: 0.8984375 Kb<br />Stored in: C:\\Windows\\php305.tmp"}

go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ module github.com/deatil/doak-cron
33
go 1.18
44

55
require (
6-
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394
6+
github.com/go-resty/resty/v2 v2.7.0
7+
github.com/jedib0t/go-pretty/v6 v6.3.3
78
github.com/json-iterator/go v1.1.12
89
github.com/robfig/cron/v3 v3.0.0
910
github.com/rs/zerolog v1.27.0
@@ -13,8 +14,6 @@ require (
1314

1415
require (
1516
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
16-
github.com/go-resty/resty/v2 v2.7.0 // indirect
17-
github.com/jedib0t/go-pretty/v6 v6.3.3 // indirect
1817
github.com/mattn/go-colorable v0.1.12 // indirect
1918
github.com/mattn/go-isatty v0.0.14 // indirect
2019
github.com/mattn/go-runewidth v0.0.13 // indirect

go.sum

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394 h1:OYA+5W64v3OgClL+IrOD63t4i/RW7RqrAVl9LTZ9UqQ=
2-
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394/go.mod h1:Q8n74mJTIgjX4RBBcHnJ05h//6/k6foqmgE45jTQtxg=
31
github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
42
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
53
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
@@ -47,7 +45,6 @@ github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
4745
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
4846
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
4947
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
50-
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
5148
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
5249
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
5350
github.com/stretchr/testify v1.7.4 h1:wZRexSlwd7ZXfKINDLsO4r7WBt3gTKONc6K/VesHvHM=
@@ -72,4 +69,5 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm
7269
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
7370
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
7471
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
72+
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
7573
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ import (
1414
)
1515

1616
// 版本号
17-
var version = "1.0.7"
17+
var version = "1.0.8"
1818

1919
/**
2020
* go版本的通用计划任务
2121
*
2222
* > go run main.go cron --conf="./cron.json" --debug
2323
* > go run main.go cron --conf="./cron.json" --log="./cron.log" --debug
24-
* > go run main.go cron ver
24+
* > go run main.go cron version
2525
*
2626
* > main.exe cron --conf="./cron.json" --debug
2727
* > main.exe cron --conf="./cron.json" --log="./cron.log" --debug
28-
* > main.exe cron ver
28+
* > main.exe cron version
2929
*
3030
* @create 2022-6-29
3131
* @author deatil
@@ -83,7 +83,7 @@ func main() {
8383
},
8484
Subcommands: []*cli.Command{
8585
{
86-
Name: "ver",
86+
Name: "version",
8787
Usage: "显示计划任务版本号",
8888
Action: func(ctx *cli.Context) error {
8989
fmt.Println("计划任务当前版本号为: ", version)

0 commit comments

Comments
 (0)