MCPcopy Index your code
hub / github.com/docker/cli / run

Function run

man/generate.go:111–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111func run() error {
112 opts := &options{}
113 flags := pflag.NewFlagSet(os.Args[0], pflag.ContinueOnError)
114 flags.StringVar(&opts.source, "source", defaultSourcePath, "Manpage source folder")
115 flags.StringVar(&opts.target, "target", "/tmp", "Target path for generated man pages")
116 if err := flags.Parse(os.Args[1:]); err != nil {
117 return err
118 }
119 return gen(opts)
120}
121
122func main() {
123 if err := run(); err != nil {

Callers 15

mainFunction · 0.70
TestConfigFunction · 0.50
TestGlobalHelpFunction · 0.50
TestRunGoodArgumentFunction · 0.50
TestClashWithGlobalArgsFunction · 0.50
TestUnknownGlobalFunction · 0.50
TestCliPluginsVersionFunction · 0.50
TestRunNonexistingFunction · 0.50
TestHelpNonexistingFunction · 0.50

Calls 1

genFunction · 0.70

Tested by 15

TestConfigFunction · 0.40
TestGlobalHelpFunction · 0.40
TestRunGoodArgumentFunction · 0.40
TestClashWithGlobalArgsFunction · 0.40
TestUnknownGlobalFunction · 0.40
TestCliPluginsVersionFunction · 0.40
TestRunNonexistingFunction · 0.40
TestHelpNonexistingFunction · 0.40
TestNonexistingHelpFunction · 0.40