Skip to content

Commit f96630e

Browse files
committed
Rename module
1 parent e69edd2 commit f96630e

File tree

13 files changed

+34
-48
lines changed

13 files changed

+34
-48
lines changed

go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
module tyson-tap
1+
module tap-waiter
22

3-
go 1.22.4
3+
go 1.23.5
44

55
require (
6-
github.com/alecthomas/kong v0.9.0
6+
github.com/alecthomas/kong v1.6.1
77
github.com/c2h5oh/datasize v0.0.0-20231215233829-aa82cc1e6500
88
github.com/patrickmn/go-cache v2.1.0+incompatible
9-
github.com/pelletier/go-toml/v2 v2.2.2
9+
github.com/pelletier/go-toml/v2 v2.2.3
1010
github.com/tidwall/gjson v1.18.0
1111
github.com/triole/logseal v0.0.0-20240105053125-57d1f8179998
1212
github.com/xhit/go-str2duration/v2 v2.1.0
13-
github.com/yuin/goldmark v1.7.4
13+
github.com/yuin/goldmark v1.7.8
1414
github.com/yuin/goldmark-meta v1.1.0
15-
gopkg.in/yaml.v2 v2.3.0
15+
gopkg.in/yaml.v2 v2.4.0
1616
gopkg.in/yaml.v3 v3.0.1
1717
)
1818

go.sum

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
github.com/alecthomas/assert/v2 v2.6.0 h1:o3WJwILtexrEUk3cUVal3oiQY2tfgr/FHWiz/v2n4FU=
2-
github.com/alecthomas/assert/v2 v2.6.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
3-
github.com/alecthomas/kong v0.9.0 h1:G5diXxc85KvoV2f0ZRVuMsi45IrBgx9zDNGNj165aPA=
4-
github.com/alecthomas/kong v0.9.0/go.mod h1:Y47y5gKfHp1hDc7CH7OeXgLIpp+Q2m1Ni0L5s3bI8Os=
1+
github.com/alecthomas/assert/v2 v2.11.0 h1:2Q9r3ki8+JYXvGsDyBXwH3LcJ+WK5D0gc5E8vS6K3D0=
2+
github.com/alecthomas/assert/v2 v2.11.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
3+
github.com/alecthomas/kong v1.6.1 h1:/7bVimARU3uxPD0hbryPE8qWrS3Oz3kPQoxA/H2NKG8=
4+
github.com/alecthomas/kong v1.6.1/go.mod h1:p2vqieVMeTAnaC83txKtXe8FLke2X07aruPWXyMPQrU=
55
github.com/alecthomas/repr v0.4.0 h1:GhI2A8MACjfegCPVq9f1FLvIBS+DrQ2KQBFZP1iFzXc=
66
github.com/alecthomas/repr v0.4.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4=
77
github.com/c2h5oh/datasize v0.0.0-20231215233829-aa82cc1e6500 h1:6lhrsTEnloDPXyeZBvSYvQf8u86jbKehZPVDDlkgDl4=
@@ -13,20 +13,14 @@ github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUq
1313
github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
1414
github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc=
1515
github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ=
16-
github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
17-
github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
16+
github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M=
17+
github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc=
1818
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1919
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2020
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
2121
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
2222
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
23-
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
24-
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
25-
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
2623
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
27-
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
28-
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
29-
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
3024
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
3125
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
3226
github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY=
@@ -39,16 +33,16 @@ github.com/triole/logseal v0.0.0-20240105053125-57d1f8179998 h1:n0ZH/b04bCbXkBtg
3933
github.com/triole/logseal v0.0.0-20240105053125-57d1f8179998/go.mod h1:Kd42uqPXKnS9vC5MW5FpuS2vIZ1QOe7y185uqBTtFlQ=
4034
github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=
4135
github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
42-
github.com/yuin/goldmark v1.7.4 h1:BDXOHExt+A7gwPCJgPIIq7ENvceR7we7rOS9TNoLZeg=
43-
github.com/yuin/goldmark v1.7.4/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=
36+
github.com/yuin/goldmark v1.7.8 h1:iERMLn0/QJeHFhxSt3p6PeN9mGnvIKSpG9YYorDMnic=
37+
github.com/yuin/goldmark v1.7.8/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=
4438
github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc=
4539
github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0=
4640
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ=
4741
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4842
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
4943
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
50-
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
51-
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
44+
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
45+
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
5246
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
5347
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
5448
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

readme.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tyson Tap ![build](https://github.com/triole/tyson-tap/actions/workflows/build.yaml/badge.svg) ![test](https://github.com/triole/tyson-tap/actions/workflows/test.yaml/badge.svg)
1+
# Tyson Tap ![build](https://github.com/triole/tap-waiter/actions/workflows/build.yaml/badge.svg) ![test](https://github.com/triole/tap-waiter/actions/workflows/test.yaml/badge.svg)
22

33
<!-- toc -->
44

@@ -84,15 +84,7 @@ order:
8484
Here are a few URL parameter examples which are hopefully self explanatory. Please keep in mind that special characters have to be url encoded.
8585

8686
```go mdox-exec="sh/display_test_urls.sh"
87-
/all.json
88-
/all.json?filter=front_matter.tags!=tag1
89-
/all.json?filter=front_matter.tags===tag1
90-
/all.json?filter=front_matter.tags==tag1
91-
/all.json?filter=front_matter.tags!==tag1&order=desc
92-
/all.json?filter=metadata.tags==ivoa
93-
/all.json?filter=tags!==ivoa&order=desc
94-
/all.json?sortby=front_matter.title
95-
/all.json?sortby=size&order=desc
87+
9688
```
9789

9890
# Filters

src/argparse.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ import (
1414

1515
var (
1616
BUILDTAGS string
17-
appName = "tyson tap"
17+
appName = "tap-waiter"
1818
appDescription = "scan folders for toml, yaml, json or markdown files and offer a web server to fetch information about them"
1919
appMainversion = "0.1"
2020
)
2121

2222
var CLI struct {
23-
Conf string `help:"path to scan, default is current dir" arg:"" optional:"" default:"${curdir}"`
23+
Conf string `help:"path to config, default is {current_dir}/tap.json" arg:"" optional:"" default:"${curdir}"`
2424
Threads int `help:"max threads, default no of avail. cpu threads" short:"t" default:"${proc}"`
2525
LogFile string `help:"log file" default:"/dev/stdout"`
2626
LogLevel string `help:"log level" default:"info" enum:"trace,debug,info,error"`
@@ -43,7 +43,7 @@ func parseArgs() {
4343
kong.Vars{
4444
"curdir": curdir,
4545
"logfile": path.Join(os.TempDir(), alnum(appName)+".log"),
46-
"output": path.Join(curdir, "tyson.json"),
46+
"output": path.Join(curdir, "tap.json"),
4747
"proc": strconv.Itoa(runtime.NumCPU()),
4848
"filter": "\\.(md|toml|yaml|json)$",
4949
},

src/conf/conf_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package conf
22

33
import (
4+
"tap-waiter/src/util"
45
"testing"
5-
"tyson-tap/src/util"
66

77
"github.com/triole/logseal"
88
)

src/conf/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package conf
22

33
import (
4-
"tyson-tap/src/util"
4+
"tap-waiter/src/util"
55

66
"github.com/triole/logseal"
77
)

src/conf/struct.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package conf
22

33
import (
4+
"tap-waiter/src/util"
45
"time"
5-
"tyson-tap/src/util"
66

77
"github.com/triole/logseal"
88
)

src/indexer/init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package indexer
22

33
import (
4-
"tyson-tap/src/conf"
5-
"tyson-tap/src/util"
4+
"tap-waiter/src/conf"
5+
"tap-waiter/src/util"
66

77
cache "github.com/patrickmn/go-cache"
88
"github.com/triole/logseal"

src/indexer/init_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package indexer
22

33
import (
4+
"tap-waiter/src/conf"
5+
"tap-waiter/src/util"
46
"testing"
5-
"tyson-tap/src/conf"
6-
"tyson-tap/src/util"
77

88
"github.com/triole/logseal"
99
yaml "gopkg.in/yaml.v3"

src/indexer/read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"errors"
77
"fmt"
88
"path/filepath"
9-
"tyson-tap/src/conf"
9+
"tap-waiter/src/conf"
1010

1111
toml "github.com/pelletier/go-toml/v2"
1212
"github.com/tidwall/gjson"

0 commit comments

Comments
 (0)