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

Commit 84ba23e

Browse files
authored
Merge pull request #2143 from gtardif/extension_cli_metrics
Add extension commands in command metrics
2 parents 2001d0c + f96ef19 commit 84ba23e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

cli/metrics/commands.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ var managementCommands = []string{
3535
"container",
3636
"context",
3737
"create",
38+
"dev",
3839
"ecs",
40+
"extension",
3941
"image",
4042
"imagetools",
4143
"key",
@@ -75,6 +77,7 @@ var commands = []string{
7577
"convert",
7678
"cp",
7779
"create",
80+
"debug",
7881
"demote",
7982
"deploy",
8083
"df",
@@ -118,6 +121,7 @@ var commands = []string{
118121
"remove",
119122
"rename",
120123
"render",
124+
"reset",
121125
"restart",
122126
"revoke",
123127
"rm",
@@ -138,6 +142,7 @@ var commands = []string{
138142
"stop",
139143
"tag",
140144
"top",
145+
"ui-source",
141146
"uninstall",
142147
"unlock",
143148
"unlock-key",

cli/metrics/metrics_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ func TestGetCommand(t *testing.T) {
173173
args: []string{"--debug", "compose", "-f", "titi.yaml", "up"},
174174
expected: "compose up",
175175
},
176+
{
177+
name: "extension install myorg/my-extension",
178+
args: []string{"extension", "install", "myorg/my-extension"},
179+
expected: "extension install",
180+
},
176181
}
177182

178183
for _, testCase := range testCases {

0 commit comments

Comments
 (0)