Skip to content

Commit

Permalink
cmd/gorules: add DocNote field (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
quasilyte authored Apr 29, 2021
1 parent 7c68deb commit a102b9b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gorules/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ go 1.16
require (
github.com/cespare/subcmd v1.1.0
github.com/go-toolsmith/strparse v1.0.0 // indirect
github.com/quasilyte/go-ruleguard v0.3.5-0.20210428232022-7a5609fc5ec6
github.com/quasilyte/go-ruleguard/rules v0.0.0-20210428232022-7a5609fc5ec6 // indirect
github.com/quasilyte/go-ruleguard v0.3.5-0.20210429194040-7c68deb7b02b
github.com/quasilyte/go-ruleguard/rules v0.0.0-20210429194040-7c68deb7b02b // indirect
)
6 changes: 6 additions & 0 deletions cmd/gorules/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ github.com/quasilyte/go-ruleguard v0.3.4 h1:F6l5p6+7WBcTKS7foNQ4wqA39zjn2+Rbdbyz
github.com/quasilyte/go-ruleguard v0.3.4/go.mod h1:57FZgMnoo6jqxkYKmVj5Fc8vOt0rVzoE/UNAmFFIPqA=
github.com/quasilyte/go-ruleguard v0.3.5-0.20210428232022-7a5609fc5ec6 h1:cHaMS4GXRhIH499NgnDipyy17VgiVuk2D6N+calwncU=
github.com/quasilyte/go-ruleguard v0.3.5-0.20210428232022-7a5609fc5ec6/go.mod h1:B+eagO+T9AoTZFYuROGERvVCM6K2RXDVBsviDUjI4zs=
github.com/quasilyte/go-ruleguard v0.3.5-0.20210429194040-7c68deb7b02b h1:oW+Sh3SA4FO5EqkmCUNkf+9jvrvs0YI5M8x+gk1pUq8=
github.com/quasilyte/go-ruleguard v0.3.5-0.20210429194040-7c68deb7b02b/go.mod h1:B+eagO+T9AoTZFYuROGERvVCM6K2RXDVBsviDUjI4zs=
github.com/quasilyte/go-ruleguard/dsl v0.3.0/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU=
github.com/quasilyte/go-ruleguard/dsl v0.3.2 h1:ULi3SLXvDUgb0u2IM5xU6er9KeWBSaUh1NlDjCgLHU8=
github.com/quasilyte/go-ruleguard/dsl v0.3.2/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU=
Expand All @@ -19,6 +21,10 @@ github.com/quasilyte/go-ruleguard/rules v0.0.0-20210203162857-b223e0831f88/go.mo
github.com/quasilyte/go-ruleguard/rules v0.0.0-20210428214800-545e0d2e0bf7/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50=
github.com/quasilyte/go-ruleguard/rules v0.0.0-20210428232022-7a5609fc5ec6 h1:hxEUKRHzSPA0VzHFcQ5EevDk9mNJojv0zg/5rY2wZ4E=
github.com/quasilyte/go-ruleguard/rules v0.0.0-20210428232022-7a5609fc5ec6/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50=
github.com/quasilyte/go-ruleguard/rules v0.0.0-20210429192448-0a861a9cd59b h1:fw8lVDGeZ+d2BoLpHCeO0RbJhWrcNeJOg1pw+SQPcR0=
github.com/quasilyte/go-ruleguard/rules v0.0.0-20210429192448-0a861a9cd59b/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50=
github.com/quasilyte/go-ruleguard/rules v0.0.0-20210429194040-7c68deb7b02b h1:u4HnUgGte+OwMOvuF+j2vRIBG1EIpnOzzFe/pWRQslc=
github.com/quasilyte/go-ruleguard/rules v0.0.0-20210429194040-7c68deb7b02b/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
Expand Down
2 changes: 2 additions & 0 deletions cmd/gorules/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func docCommand(args []string) error {
DocBefore string
DocAfter string
DocTags []string
DocNote string
}
type JsonList struct {
List []JsonListEntry
Expand Down Expand Up @@ -86,6 +87,7 @@ func docCommand(args []string) error {
DocBefore: g.DocBefore,
DocAfter: g.DocAfter,
DocTags: g.DocTags,
DocNote: g.DocNote,
})
}
var buf bytes.Buffer
Expand Down

0 comments on commit a102b9b

Please sign in to comment.