Skip to content

Commit c32309e

Browse files
committed
cmd/loop: remove custom cli-docs template override
Now that urfave/cli-docs#15 removes empty environment variable columns, we can rely on upstream and delete our embedded template copy.
1 parent b9832c4 commit c32309e

File tree

4 files changed

+3
-96
lines changed

4 files changed

+3
-96
lines changed

cmd/loop/docs.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,12 @@ package main
22

33
import (
44
"context"
5-
_ "embed"
65
"fmt"
76

87
docs "github.com/urfave/cli-docs/v3"
98
"github.com/urfave/cli/v3"
109
)
1110

12-
//go:embed markdown_tabular.md.gotmpl
13-
var markdownTabularDocTemplate string
14-
15-
// We have a copy of this template taken from
16-
// https://github.com/urfave/cli-docs where we remove column
17-
// "Environment variables" if it has no values.
18-
// TODO: remove this when https://github.com/urfave/cli-docs/pull/15
19-
// is merged.
20-
func init() {
21-
docs.MarkdownTabularDocTemplate = markdownTabularDocTemplate
22-
}
23-
2411
var printManCommand = &cli.Command{
2512
Name: "man",
2613
Usage: "prints man file",

cmd/loop/markdown_tabular.md.gotmpl

Lines changed: 0 additions & 80 deletions
This file was deleted.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ require (
3434
github.com/lightningnetwork/lnd/tor v1.1.6
3535
github.com/ory/dockertest/v3 v3.10.0
3636
github.com/stretchr/testify v1.10.0
37-
github.com/urfave/cli-docs/v3 v3.1.0
37+
github.com/urfave/cli-docs/v3 v3.1.1-0.20251020101624-bec07369b4f6
3838
github.com/urfave/cli/v3 v3.4.1
3939
go.etcd.io/bbolt v1.4.3
4040
golang.org/x/sync v0.13.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,8 +1313,8 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 h1:uruHq4
13131313
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
13141314
github.com/tv42/zbase32 v0.0.0-20160707012821-501572607d02 h1:tcJ6OjwOMvExLlzrAVZute09ocAGa7KqOON60++Gz4E=
13151315
github.com/tv42/zbase32 v0.0.0-20160707012821-501572607d02/go.mod h1:tHlrkM198S068ZqfrO6S8HsoJq2bF3ETfTL+kt4tInY=
1316-
github.com/urfave/cli-docs/v3 v3.1.0 h1:Sa5xm19IpE5gpm6tZzXdfjdFxn67PnEsE4dpXF7vsKw=
1317-
github.com/urfave/cli-docs/v3 v3.1.0/go.mod h1:59d+5Hz1h6GSGJ10cvcEkbIe3j233t4XDqI72UIx7to=
1316+
github.com/urfave/cli-docs/v3 v3.1.1-0.20251020101624-bec07369b4f6 h1:cm0BrTu3Q0CNo+vB5kErCcVMZqD2D1z7y3YVIiBlr+o=
1317+
github.com/urfave/cli-docs/v3 v3.1.1-0.20251020101624-bec07369b4f6/go.mod h1:59d+5Hz1h6GSGJ10cvcEkbIe3j233t4XDqI72UIx7to=
13181318
github.com/urfave/cli/v3 v3.4.1 h1:1M9UOCy5bLmGnuu1yn3t3CB4rG79Rtoxuv1sPhnm6qM=
13191319
github.com/urfave/cli/v3 v3.4.1/go.mod h1:FJSKtM/9AiiTOJL4fJ6TbMUkxBXn7GO9guZqoZtpYpo=
13201320
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c=

0 commit comments

Comments
 (0)