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>
This commit is contained in:
Sebastiaan van Stijn 2020-04-19 19:51:12 +02:00
Родитель ae66898200
Коммит c4798a9daa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 76698F39D527CE8C
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -21,7 +21,10 @@ func generateCliYaml(opts *options) error {
if err != nil {
return err
}
cmd := &cobra.Command{Use: "docker"}
cmd := &cobra.Command{
Use: "docker [OPTIONS] COMMAND [ARG...]",
Short: "The base command for the Docker CLI.",
}
commands.AddCommands(cmd, dockerCli)
disableFlagsInUseLine(cmd)
source := filepath.Join(opts.source, descriptionSourcePath)