Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 36c6db1

Browse files
committed
yamldocs: add description to base command
Currently the documentation uses a special case for this command, so adding a description to the YAML in order to remove that special case. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit c4798a9daad840fba46adf0c5d03606b9a7275a9) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 0d26cbf5b7c5cad106f9afb321bb8c4ba8832dc9 Component: cli
1 parent df84528 commit 36c6db1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

components/cli/docs/yaml/generate.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ func generateCliYaml(opts *options) error {
2121
if err != nil {
2222
return err
2323
}
24-
cmd := &cobra.Command{Use: "docker"}
24+
cmd := &cobra.Command{
25+
Use: "docker [OPTIONS] COMMAND [ARG...]",
26+
Short: "The base command for the Docker CLI.",
27+
}
2528
commands.AddCommands(cmd, dockerCli)
2629
disableFlagsInUseLine(cmd)
2730
source := filepath.Join(opts.source, descriptionSourcePath)

0 commit comments

Comments
 (0)