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

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

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