Skip to content

Commit

Permalink
bump extlib modules
Browse files Browse the repository at this point in the history
  • Loading branch information
xrstf committed Dec 13, 2023
1 parent 0e0e17b commit 73bb812
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 47 deletions.
Binary file modified cmd/rudi/docs/data/functions/semver.md.gz
Binary file not shown.
Binary file modified cmd/rudi/docs/data/functions/uuidv4.md.gz
Binary file not shown.
4 changes: 0 additions & 4 deletions cmd/rudi/docs/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

package docs

func ptrTo[T any](v T) *T {
return &v
}

var (
darkStyle = map[Node]TextStyle{
DocumentNode: {
Expand Down
10 changes: 5 additions & 5 deletions cmd/rudi/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ require (
github.com/chzyer/readline v1.5.1
github.com/muesli/termenv v0.15.2
github.com/spf13/pflag v1.0.5
go.xrstf.de/rudi v0.2.1-0.20231205152938-7272c971e798
go.xrstf.de/rudi-contrib/semver v0.1.2-0.20231210181347-e6342878d0cd
go.xrstf.de/rudi-contrib/uuid v0.1.1-0.20231210181347-e6342878d0cd
go.xrstf.de/rudi-contrib/yaml v0.1.2-0.20231210181347-e6342878d0cd
go.xrstf.de/rudi v0.3.1-0.20231213154017-00deb3910d92
go.xrstf.de/rudi-contrib/semver v0.1.2
go.xrstf.de/rudi-contrib/uuid v0.1.2
go.xrstf.de/rudi-contrib/yaml v0.1.2
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/google/uuid v1.1.1 // indirect
github.com/google/uuid v1.5.0 // indirect
github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand Down
16 changes: 8 additions & 8 deletions cmd/rudi/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38
github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM=
github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU=
github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f h1:7LYC+Yfkj3CTRcShK0KOL/w6iTiKyqqBA9a41Wnggw8=
github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f/go.mod h1:pFlLw2CfqZiIBOx6BuCeRLCrfxBJipTY0nIOF/VbGcI=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
Expand All @@ -32,12 +32,12 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/xrstf/colorjson v0.0.0-20231123184920-5ea6fecf578f h1:gVBqsyWwyxxzSGjfeOZVHGWMQNN7pgMwJzKdJc8sHzs=
github.com/xrstf/colorjson v0.0.0-20231123184920-5ea6fecf578f/go.mod h1:AY6XdslHQYqT5ivYt21gXNpCjsck8iEoytnNfz3COxY=
go.xrstf.de/rudi-contrib/semver v0.1.2-0.20231210181347-e6342878d0cd h1:fPdIhcAsBT20PVKCbreFzMY0cU7WdECPAvYNd1hqsic=
go.xrstf.de/rudi-contrib/semver v0.1.2-0.20231210181347-e6342878d0cd/go.mod h1:7NKxC25Rn2BnigjKg1yx78lMhWOug8ohWjXyp5avR1w=
go.xrstf.de/rudi-contrib/uuid v0.1.1-0.20231210181347-e6342878d0cd h1:RWRUPfKRNKeQ5moFOMwSPj2nzRk45boR9IrWZBNnkCk=
go.xrstf.de/rudi-contrib/uuid v0.1.1-0.20231210181347-e6342878d0cd/go.mod h1:dDF81g8+CBl0UyZHi8v/VQ3ekyd6qFGsjKsqyOCzX5Y=
go.xrstf.de/rudi-contrib/yaml v0.1.2-0.20231210181347-e6342878d0cd h1:MMcSaVYnyWy7A8ZORJ3oAMRslApCGdzfZOxpVc4NAy0=
go.xrstf.de/rudi-contrib/yaml v0.1.2-0.20231210181347-e6342878d0cd/go.mod h1:SuYonfFIxflUGzanG2mFLOLACHeRK5Jl0G++bCPLZNU=
go.xrstf.de/rudi-contrib/semver v0.1.2 h1:bu4lT85akD92+stWfPIhvciJqVJ91sl44cryG51+jI0=
go.xrstf.de/rudi-contrib/semver v0.1.2/go.mod h1:7NKxC25Rn2BnigjKg1yx78lMhWOug8ohWjXyp5avR1w=
go.xrstf.de/rudi-contrib/uuid v0.1.2 h1:SIcUVDxhwC16xuYYBPHoTTR8DkB8xmy9/tDIVPaZdt8=
go.xrstf.de/rudi-contrib/uuid v0.1.2/go.mod h1:ku4VC/T+Ex4ALhsk3crFtyM7fPE0+iAgZHKnTgCJbl4=
go.xrstf.de/rudi-contrib/yaml v0.1.2 h1:dwbc3sLpH6jl0dhnQYNTLOt9FKP89NpCMRtDSlrkxEQ=
go.xrstf.de/rudi-contrib/yaml v0.1.2/go.mod h1:SuYonfFIxflUGzanG2mFLOLACHeRK5Jl0G++bCPLZNU=
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand Down
2 changes: 0 additions & 2 deletions cmd/rudi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ func printVersion() {
for _, v := range extlibVersions {
fmt.Printf(format, v.module, v.version)
}

return
}

func main() {
Expand Down
16 changes: 15 additions & 1 deletion docs/extlib/semver/semver.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# semver

This function does things.
This function will parse a string as a semantic version. The parsing is "relaxed",
allowing for a leading `"v"` and the least significant parts can be left out
when they are zero (e.g. `"v1.0.0"` is just as valid as `"1"`).

Parsed semvers are a custom type (not a string, not a vector). They can be
directly compared to each other and to strings (i.e. they can be coalesced to
a string, depending on the coalescer).

## Examples

* `(semver "v1.2")` -> semver object
* `(semver "foo")` -> error
* `(eq? (to-string (semver "v1.0")) "1.0.0")` -> `true`
* `(eq? (semver "v1.0") "1.0.0")` -> `true` (with human coalescing)
* `(gt? (semver "v1.0") (semver "v1.0.1"))` -> `false`
7 changes: 6 additions & 1 deletion docs/extlib/uuid/uuidv4.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# uuidv4

This function does things.
This function returns a new, randomly generated UUID (version 4) when called.
UUIDs are represented as lowercase hex strings in Rudi.

## Examples

* `(uuidv4)` -> `"0de626c1-5955-4303-a52b-420463386f76"`
10 changes: 5 additions & 5 deletions hack/docs-prerender/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.21.0
require (
github.com/charmbracelet/glamour v0.6.1-0.20231207115508-e526301e1404
github.com/leaanthony/go-ansi-parser v1.6.1
go.xrstf.de/rudi v0.2.1-0.20231205152938-7272c971e798
go.xrstf.de/rudi v0.3.1-0.20231213154017-00deb3910d92
go.xrstf.de/rudi/cmd/rudi v0.0.0-00010101000000-000000000000
)

Expand All @@ -17,7 +17,7 @@ require (
github.com/aymerick/douceur v0.2.0 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/dlclark/regexp2 v1.10.0 // indirect
github.com/google/uuid v1.1.1 // indirect
github.com/google/uuid v1.5.0 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
Expand All @@ -29,9 +29,9 @@ require (
github.com/rivo/uniseg v0.4.4 // indirect
github.com/yuin/goldmark v1.6.0 // indirect
github.com/yuin/goldmark-emoji v1.0.2 // indirect
go.xrstf.de/rudi-contrib/semver v0.1.2-0.20231210181347-e6342878d0cd // indirect
go.xrstf.de/rudi-contrib/uuid v0.1.1-0.20231210181347-e6342878d0cd // indirect
go.xrstf.de/rudi-contrib/yaml v0.1.2-0.20231210181347-e6342878d0cd // indirect
go.xrstf.de/rudi-contrib/semver v0.1.2 // indirect
go.xrstf.de/rudi-contrib/uuid v0.1.2 // indirect
go.xrstf.de/rudi-contrib/yaml v0.1.2 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
16 changes: 8 additions & 8 deletions hack/docs-prerender/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ github.com/dlclark/regexp2 v1.10.0 h1:+/GIL799phkJqYW+3YbOd8LCcbHzT0Pbo8zl70MHsq
github.com/dlclark/regexp2 v1.10.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU=
github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY=
github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
Expand Down Expand Up @@ -51,12 +51,12 @@ github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68=
github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/yuin/goldmark-emoji v1.0.2 h1:c/RgTShNgHTtc6xdz2KKI74jJr6rWi7FPgnP9GAsO5s=
github.com/yuin/goldmark-emoji v1.0.2/go.mod h1:RhP/RWpexdp+KHs7ghKnifRoIs/Bq4nDS7tRbCkOwKY=
go.xrstf.de/rudi-contrib/semver v0.1.2-0.20231210181347-e6342878d0cd h1:fPdIhcAsBT20PVKCbreFzMY0cU7WdECPAvYNd1hqsic=
go.xrstf.de/rudi-contrib/semver v0.1.2-0.20231210181347-e6342878d0cd/go.mod h1:7NKxC25Rn2BnigjKg1yx78lMhWOug8ohWjXyp5avR1w=
go.xrstf.de/rudi-contrib/uuid v0.1.1-0.20231210181347-e6342878d0cd h1:RWRUPfKRNKeQ5moFOMwSPj2nzRk45boR9IrWZBNnkCk=
go.xrstf.de/rudi-contrib/uuid v0.1.1-0.20231210181347-e6342878d0cd/go.mod h1:dDF81g8+CBl0UyZHi8v/VQ3ekyd6qFGsjKsqyOCzX5Y=
go.xrstf.de/rudi-contrib/yaml v0.1.2-0.20231210181347-e6342878d0cd h1:MMcSaVYnyWy7A8ZORJ3oAMRslApCGdzfZOxpVc4NAy0=
go.xrstf.de/rudi-contrib/yaml v0.1.2-0.20231210181347-e6342878d0cd/go.mod h1:SuYonfFIxflUGzanG2mFLOLACHeRK5Jl0G++bCPLZNU=
go.xrstf.de/rudi-contrib/semver v0.1.2 h1:bu4lT85akD92+stWfPIhvciJqVJ91sl44cryG51+jI0=
go.xrstf.de/rudi-contrib/semver v0.1.2/go.mod h1:7NKxC25Rn2BnigjKg1yx78lMhWOug8ohWjXyp5avR1w=
go.xrstf.de/rudi-contrib/uuid v0.1.2 h1:SIcUVDxhwC16xuYYBPHoTTR8DkB8xmy9/tDIVPaZdt8=
go.xrstf.de/rudi-contrib/uuid v0.1.2/go.mod h1:ku4VC/T+Ex4ALhsk3crFtyM7fPE0+iAgZHKnTgCJbl4=
go.xrstf.de/rudi-contrib/yaml v0.1.2 h1:dwbc3sLpH6jl0dhnQYNTLOt9FKP89NpCMRtDSlrkxEQ=
go.xrstf.de/rudi-contrib/yaml v0.1.2/go.mod h1:SuYonfFIxflUGzanG2mFLOLACHeRK5Jl0G++bCPLZNU=
golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=
golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand Down
10 changes: 5 additions & 5 deletions hack/docs-toc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ go 1.21
toolchain go1.21.0

require (
go.xrstf.de/rudi v0.2.1-0.20231205152938-7272c971e798
go.xrstf.de/rudi v0.3.1-0.20231213154017-00deb3910d92
go.xrstf.de/rudi/cmd/rudi v0.0.0-00010101000000-000000000000
)

require (
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/google/uuid v1.1.1 // indirect
github.com/google/uuid v1.5.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
go.xrstf.de/rudi-contrib/semver v0.1.2-0.20231210181347-e6342878d0cd // indirect
go.xrstf.de/rudi-contrib/uuid v0.1.1-0.20231210181347-e6342878d0cd // indirect
go.xrstf.de/rudi-contrib/yaml v0.1.2-0.20231210181347-e6342878d0cd // indirect
go.xrstf.de/rudi-contrib/semver v0.1.2 // indirect
go.xrstf.de/rudi-contrib/uuid v0.1.2 // indirect
go.xrstf.de/rudi-contrib/yaml v0.1.2 // indirect
golang.org/x/sys v0.14.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Expand Down
16 changes: 8 additions & 8 deletions hack/docs-toc/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU=
github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
Expand All @@ -16,12 +16,12 @@ github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo
github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
go.xrstf.de/rudi-contrib/semver v0.1.2-0.20231210181347-e6342878d0cd h1:fPdIhcAsBT20PVKCbreFzMY0cU7WdECPAvYNd1hqsic=
go.xrstf.de/rudi-contrib/semver v0.1.2-0.20231210181347-e6342878d0cd/go.mod h1:7NKxC25Rn2BnigjKg1yx78lMhWOug8ohWjXyp5avR1w=
go.xrstf.de/rudi-contrib/uuid v0.1.1-0.20231210181347-e6342878d0cd h1:RWRUPfKRNKeQ5moFOMwSPj2nzRk45boR9IrWZBNnkCk=
go.xrstf.de/rudi-contrib/uuid v0.1.1-0.20231210181347-e6342878d0cd/go.mod h1:dDF81g8+CBl0UyZHi8v/VQ3ekyd6qFGsjKsqyOCzX5Y=
go.xrstf.de/rudi-contrib/yaml v0.1.2-0.20231210181347-e6342878d0cd h1:MMcSaVYnyWy7A8ZORJ3oAMRslApCGdzfZOxpVc4NAy0=
go.xrstf.de/rudi-contrib/yaml v0.1.2-0.20231210181347-e6342878d0cd/go.mod h1:SuYonfFIxflUGzanG2mFLOLACHeRK5Jl0G++bCPLZNU=
go.xrstf.de/rudi-contrib/semver v0.1.2 h1:bu4lT85akD92+stWfPIhvciJqVJ91sl44cryG51+jI0=
go.xrstf.de/rudi-contrib/semver v0.1.2/go.mod h1:7NKxC25Rn2BnigjKg1yx78lMhWOug8ohWjXyp5avR1w=
go.xrstf.de/rudi-contrib/uuid v0.1.2 h1:SIcUVDxhwC16xuYYBPHoTTR8DkB8xmy9/tDIVPaZdt8=
go.xrstf.de/rudi-contrib/uuid v0.1.2/go.mod h1:ku4VC/T+Ex4ALhsk3crFtyM7fPE0+iAgZHKnTgCJbl4=
go.xrstf.de/rudi-contrib/yaml v0.1.2 h1:dwbc3sLpH6jl0dhnQYNTLOt9FKP89NpCMRtDSlrkxEQ=
go.xrstf.de/rudi-contrib/yaml v0.1.2/go.mod h1:SuYonfFIxflUGzanG2mFLOLACHeRK5Jl0G++bCPLZNU=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
Expand Down

0 comments on commit 73bb812

Please sign in to comment.