File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 4
4
! /go.mod
5
5
! /go.sum
6
6
! /.golangci.yml
7
- ! /vendor
7
+ ! /vendor
8
+ ! /docs
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
+ "context"
4
5
"log"
5
6
"os"
6
7
"strings"
7
8
8
9
clidocstool "github.com/docker/cli-docs-tool"
9
10
"github.com/docker/cli/cli/command"
10
- "github.com/docker/mcp-gateway/cmd/docker-mcp"
11
11
"github.com/pkg/errors"
12
12
"github.com/spf13/cobra"
13
13
"github.com/spf13/pflag"
14
+
15
+ "github.com/docker/mcp-gateway/cmd/docker-mcp/commands"
14
16
)
15
17
16
18
const defaultSourcePath = "/reference/"
@@ -33,7 +35,7 @@ func gen(opts *options) error {
33
35
DisableAutoGenTag : true ,
34
36
}
35
37
36
- cmd .AddCommand (commands .NewRootCmd ( dockerCLI ))
38
+ cmd .AddCommand (commands .Root ( context . TODO (), "" , dockerCLI ))
37
39
38
40
c , err := clidocstool .New (clidocstool.Options {
39
41
Root : cmd ,
@@ -104,4 +106,4 @@ func fixUpExperimentalCLI(cmd *cobra.Command) {
104
106
for _ , c := range cmd .Commands () {
105
107
fixUpExperimentalCLI (c )
106
108
}
107
- }
109
+ }
You can’t perform that action at this time.
0 commit comments