This repository was archived by the owner on Nov 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,16 +26,17 @@ var managementCommands = []string{
2626 "help" ,
2727 "ecs" ,
2828 "scan" ,
29+ "image" ,
2930 "app" ,
3031 "builder" ,
3132 "imagetools" ,
3233 "buildx" ,
3334 "checkpoint" ,
35+ "compose" ,
3436 "config" ,
3537 "container" ,
3638 "context" ,
3739 "create" ,
38- "image" ,
3940 "manifest" ,
4041 "network" ,
4142 "node" ,
@@ -51,82 +52,75 @@ var managementCommands = []string{
5152 "volume" ,
5253 "login" ,
5354 "logout" ,
54- "compose" ,
5555}
5656
5757var commands = []string {
58- "bundle" ,
59- "completion" ,
60- "init" ,
6158 "inspect" ,
62- "install" ,
63- "deploy" ,
64- "list" ,
6559 "ls" ,
66- "cp" ,
67- "merge" ,
60+ "list" ,
61+ "rm" ,
62+ "remove" ,
63+ "tag" ,
64+ "build" ,
65+ "init" ,
6866 "pull" ,
6967 "push" ,
70- "render" ,
71- "split" ,
72- "status" ,
73- "uninstall" ,
74- "upgrade" ,
75- "validate" ,
76- "version" ,
77- "build" ,
68+ "run" ,
69+ "deploy" ,
70+ "update" ,
7871 "prune" ,
7972 "create" ,
8073 "bake" ,
8174 "f" ,
8275 "b" ,
8376 "du" ,
84- "rm" ,
8577 "stop" ,
8678 "use" ,
87- "remove " ,
88- "attach " ,
89- "commit " ,
79+ "version " ,
80+ "convert " ,
81+ "config " ,
9082 "cp" ,
91- "diff" ,
83+ "down" ,
84+ "events" ,
9285 "exec" ,
93- "export " ,
86+ "images " ,
9487 "kill" ,
9588 "logs" ,
96- "ps" ,
9789 "pause" ,
9890 "port" ,
99- "rename " ,
91+ "ps " ,
10092 "restart" ,
101- "run" ,
10293 "start" ,
103- "stats" ,
10494 "top" ,
10595 "unpause" ,
106- "update" ,
96+ "up" ,
97+ "attach" ,
98+ "commit" ,
99+ "diff" ,
100+ "export" ,
101+ "rename" ,
102+ "stats" ,
107103 "wait" ,
108104 "aci" ,
109105 "ecs" ,
106+ "import" ,
110107 "show" ,
111108 "history" ,
112- "import" ,
113109 "load" ,
114- "images" ,
115110 "rmi" ,
116111 "save" ,
117- "tag" ,
118112 "annotate" ,
119113 "connect" ,
120114 "disconnect" ,
121115 "demote" ,
122116 "promote" ,
123117 "disable" ,
124118 "enable" ,
119+ "install" ,
125120 "set" ,
121+ "upgrade" ,
126122 "rollback" ,
127123 "scale" ,
128- "up" ,
129- "down" ,
130124 "services" ,
131125 "ca" ,
132126 "join" ,
@@ -135,7 +129,6 @@ var commands = []string{
135129 "unlock" ,
136130 "unlock-key" ,
137131 "df" ,
138- "events" ,
139132 "info" ,
140133 "generate" ,
141134 "add" ,
@@ -145,5 +138,4 @@ var commands = []string{
145138 "azure" ,
146139 "logout" ,
147140 "search" ,
148- "convert" ,
149141}
Original file line number Diff line number Diff line change @@ -26,11 +26,12 @@ import (
2626
2727var managementCommands = []string {"ecs" , "scan" }
2828
29- var commands = []string {}
29+ var commands []string
3030
3131func main () {
3232 fmt .Println ("Walking through docker help to list commands..." )
3333 getCommands ()
34+ getCommands ("buildx" )
3435 getCommands ("compose" )
3536
3637 fmt .Printf (`
@@ -71,7 +72,9 @@ func getCommands(execCommands ...string) {
7172 section = commandsSection
7273 if len (execCommands ) > 0 {
7374 command := execCommands [len (execCommands )- 1 ]
74- managementCommands = append (managementCommands , command )
75+ if ! utils .StringContains (managementCommands , command ) {
76+ managementCommands = append (managementCommands , command )
77+ }
7578 }
7679 continue
7780 }
You can’t perform that action at this time.
0 commit comments