This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +33
-38
lines changed Expand file tree Collapse file tree 2 files changed +33
-38
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,17 @@ var managementCommands = []string{
26
26
"help" ,
27
27
"ecs" ,
28
28
"scan" ,
29
+ "image" ,
29
30
"app" ,
30
31
"builder" ,
31
32
"imagetools" ,
32
33
"buildx" ,
33
34
"checkpoint" ,
35
+ "compose" ,
34
36
"config" ,
35
37
"container" ,
36
38
"context" ,
37
39
"create" ,
38
- "image" ,
39
40
"manifest" ,
40
41
"network" ,
41
42
"node" ,
@@ -51,82 +52,75 @@ var managementCommands = []string{
51
52
"volume" ,
52
53
"login" ,
53
54
"logout" ,
54
- "compose" ,
55
55
}
56
56
57
57
var commands = []string {
58
- "bundle" ,
59
- "completion" ,
60
- "init" ,
61
58
"inspect" ,
62
- "install" ,
63
- "deploy" ,
64
- "list" ,
65
59
"ls" ,
66
- "cp" ,
67
- "merge" ,
60
+ "list" ,
61
+ "rm" ,
62
+ "remove" ,
63
+ "tag" ,
64
+ "build" ,
65
+ "init" ,
68
66
"pull" ,
69
67
"push" ,
70
- "render" ,
71
- "split" ,
72
- "status" ,
73
- "uninstall" ,
74
- "upgrade" ,
75
- "validate" ,
76
- "version" ,
77
- "build" ,
68
+ "run" ,
69
+ "deploy" ,
70
+ "update" ,
78
71
"prune" ,
79
72
"create" ,
80
73
"bake" ,
81
74
"f" ,
82
75
"b" ,
83
76
"du" ,
84
- "rm" ,
85
77
"stop" ,
86
78
"use" ,
87
- "remove " ,
88
- "attach " ,
89
- "commit " ,
79
+ "version " ,
80
+ "convert " ,
81
+ "config " ,
90
82
"cp" ,
91
- "diff" ,
83
+ "down" ,
84
+ "events" ,
92
85
"exec" ,
93
- "export " ,
86
+ "images " ,
94
87
"kill" ,
95
88
"logs" ,
96
- "ps" ,
97
89
"pause" ,
98
90
"port" ,
99
- "rename " ,
91
+ "ps " ,
100
92
"restart" ,
101
- "run" ,
102
93
"start" ,
103
- "stats" ,
104
94
"top" ,
105
95
"unpause" ,
106
- "update" ,
96
+ "up" ,
97
+ "attach" ,
98
+ "commit" ,
99
+ "diff" ,
100
+ "export" ,
101
+ "rename" ,
102
+ "stats" ,
107
103
"wait" ,
108
104
"aci" ,
109
105
"ecs" ,
106
+ "import" ,
110
107
"show" ,
111
108
"history" ,
112
- "import" ,
113
109
"load" ,
114
- "images" ,
115
110
"rmi" ,
116
111
"save" ,
117
- "tag" ,
118
112
"annotate" ,
119
113
"connect" ,
120
114
"disconnect" ,
121
115
"demote" ,
122
116
"promote" ,
123
117
"disable" ,
124
118
"enable" ,
119
+ "install" ,
125
120
"set" ,
121
+ "upgrade" ,
126
122
"rollback" ,
127
123
"scale" ,
128
- "up" ,
129
- "down" ,
130
124
"services" ,
131
125
"ca" ,
132
126
"join" ,
@@ -135,7 +129,6 @@ var commands = []string{
135
129
"unlock" ,
136
130
"unlock-key" ,
137
131
"df" ,
138
- "events" ,
139
132
"info" ,
140
133
"generate" ,
141
134
"add" ,
@@ -145,5 +138,4 @@ var commands = []string{
145
138
"azure" ,
146
139
"logout" ,
147
140
"search" ,
148
- "convert" ,
149
141
}
Original file line number Diff line number Diff line change @@ -26,11 +26,12 @@ import (
26
26
27
27
var managementCommands = []string {"ecs" , "scan" }
28
28
29
- var commands = []string {}
29
+ var commands []string
30
30
31
31
func main () {
32
32
fmt .Println ("Walking through docker help to list commands..." )
33
33
getCommands ()
34
+ getCommands ("buildx" )
34
35
getCommands ("compose" )
35
36
36
37
fmt .Printf (`
@@ -71,7 +72,9 @@ func getCommands(execCommands ...string) {
71
72
section = commandsSection
72
73
if len (execCommands ) > 0 {
73
74
command := execCommands [len (execCommands )- 1 ]
74
- managementCommands = append (managementCommands , command )
75
+ if ! utils .StringContains (managementCommands , command ) {
76
+ managementCommands = append (managementCommands , command )
77
+ }
75
78
}
76
79
continue
77
80
}
You can’t perform that action at this time.
0 commit comments