recover missing commands for backward compatibility

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2021-11-16 07:13:07 +01:00
Родитель 6fd97089b8
Коммит a4ae60a39d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3248E46B6BB8C7F7
2 изменённых файлов: 12 добавлений и 3 удалений

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

@ -63,8 +63,10 @@ var commands = []string{
"b",
"bake",
"build",
"bundle",
"ca",
"commit",
"completion",
"config",
"connect",
"convert",
@ -102,6 +104,7 @@ var commands = []string{
"logout",
"logs",
"ls",
"merge",
"pause",
"port",
"promote",
@ -111,6 +114,7 @@ var commands = []string{
"push",
"remove",
"rename",
"render",
"restart",
"revoke",
"rm",
@ -124,11 +128,14 @@ var commands = []string{
"set",
"show",
"sign",
"split",
"start",
"stats",
"status",
"stop",
"tag",
"top",
"uninstall",
"unlock",
"unlock-key",
"unpause",
@ -136,6 +143,7 @@ var commands = []string{
"update",
"upgrade",
"use",
"validate",
"version",
"wait",
}

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

@ -25,9 +25,10 @@ import (
"github.com/docker/compose/v2/pkg/utils"
)
var managementCommands = []string{"ecs", "scan"}
var commands []string
var (
managementCommands = []string{"ecs", "scan"}
commands = []string{"bundle", "completion", "install", "merge", "render", "split", "status", "uninstall", "validate"}
)
func main() {
fmt.Println("Walking through docker help to list commands...")