Merge pull request #2143 from gtardif/extension_cli_metrics

Add extension commands in command metrics
This commit is contained in:
Guillaume Tardif 2022-04-14 16:54:22 +02:00 коммит произвёл GitHub
Родитель 2001d0c4ed f96ef1970c
Коммит 84ba23e928
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 10 добавлений и 0 удалений

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

@ -35,7 +35,9 @@ var managementCommands = []string{
"container", "container",
"context", "context",
"create", "create",
"dev",
"ecs", "ecs",
"extension",
"image", "image",
"imagetools", "imagetools",
"key", "key",
@ -75,6 +77,7 @@ var commands = []string{
"convert", "convert",
"cp", "cp",
"create", "create",
"debug",
"demote", "demote",
"deploy", "deploy",
"df", "df",
@ -118,6 +121,7 @@ var commands = []string{
"remove", "remove",
"rename", "rename",
"render", "render",
"reset",
"restart", "restart",
"revoke", "revoke",
"rm", "rm",
@ -138,6 +142,7 @@ var commands = []string{
"stop", "stop",
"tag", "tag",
"top", "top",
"ui-source",
"uninstall", "uninstall",
"unlock", "unlock",
"unlock-key", "unlock-key",

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

@ -173,6 +173,11 @@ func TestGetCommand(t *testing.T) {
args: []string{"--debug", "compose", "-f", "titi.yaml", "up"}, args: []string{"--debug", "compose", "-f", "titi.yaml", "up"},
expected: "compose up", expected: "compose up",
}, },
{
name: "extension install myorg/my-extension",
args: []string{"extension", "install", "myorg/my-extension"},
expected: "extension install",
},
} }
for _, testCase := range testCases { for _, testCase := range testCases {