Skip to content

Commit 9d26ab2

Browse files
vdemeesterdnephin
authored andcommitted
Refactor content_trust cli/flags handling
Remove the global variable used. Allows easier unit testing. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 524adae commit 9d26ab2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

man/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func generateManPages(opts *options) error {
2525
}
2626

2727
stdin, stdout, stderr := term.StdStreams()
28-
dockerCli := command.NewDockerCli(stdin, stdout, stderr)
28+
dockerCli := command.NewDockerCli(stdin, stdout, stderr, false)
2929
cmd := &cobra.Command{Use: "docker"}
3030
commands.AddCommands(cmd, dockerCli)
3131
source := filepath.Join(opts.source, descriptionSourcePath)

0 commit comments

Comments
 (0)