diff --git a/cmd/gorules/go.mod b/cmd/gorules/go.mod index dd4503d7..defa5b9d 100644 --- a/cmd/gorules/go.mod +++ b/cmd/gorules/go.mod @@ -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 ) diff --git a/cmd/gorules/go.sum b/cmd/gorules/go.sum index 0579a2f0..9f8307f7 100644 --- a/cmd/gorules/go.sum +++ b/cmd/gorules/go.sum @@ -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= @@ -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= diff --git a/cmd/gorules/main.go b/cmd/gorules/main.go index 44f1cbe7..764a800c 100644 --- a/cmd/gorules/main.go +++ b/cmd/gorules/main.go @@ -42,6 +42,7 @@ func docCommand(args []string) error { DocBefore string DocAfter string DocTags []string + DocNote string } type JsonList struct { List []JsonListEntry @@ -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