Skip to content

Commit 1618283

Browse files
committed
kcl: duplicate topic / group into top level
listing / creating / describing topics and groups are so common that it makes more sense to have these be top level.
1 parent 784adc1 commit 1618283

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

README.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,17 @@ kcl
128128
129129
metadata -- print broker, cluster, and topic information
130130
131+
group
132+
list -- list consumer groups
133+
describe -- describe consumer groups
134+
delete -- delete consumer groups
135+
offset-delete -- forcefully delete committed offsets a group (see KIP-496)
136+
137+
topic
138+
create -- create topics
139+
delete -- delete topics
140+
add-partitions -- add partitions to topics
141+
131142
misc
132143
api-versions -- print api versions for requests
133144
probe-version -- probe for the currently running Kafka version
@@ -160,11 +171,7 @@ kcl
160171
describe -- describe delegation tokens
161172
expire -- expire delegation tokens
162173
163-
group
164-
list -- list consumer groups
165-
describe -- describe consumer groups
166-
delete -- delete consumer groups
167-
offset-delete -- forcefully delete committed offsets a group (see KIP-496)
174+
group -- duplicate of `kcl group` top level command
168175
169176
logdirs
170177
alter -- alter log directories that partitions are in
@@ -174,10 +181,7 @@ kcl
174181
alter -- alter partition assignments
175182
list -- list partition reassignments
176183
177-
topic
178-
create -- create topics
179-
delete -- delete topics
180-
add-partitions -- add partitions to topics
184+
topic -- duplicate of `kcl topic` top level command
181185
182186
user-scram
183187
alter -- alter user scram

main.go

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99

1010
"github.com/twmb/kcl/client"
1111
"github.com/twmb/kcl/commands/admin"
12+
"github.com/twmb/kcl/commands/admin/group"
13+
"github.com/twmb/kcl/commands/admin/topic"
1214
"github.com/twmb/kcl/commands/consume"
1315
"github.com/twmb/kcl/commands/metadata"
1416
"github.com/twmb/kcl/commands/misc"
@@ -50,6 +52,9 @@ Command completion is available at:
5052
misc.Command(cl),
5153
admin.Command(cl),
5254
myconfig.Command(cl),
55+
56+
topic.Command(cl),
57+
group.Command(cl),
5358
)
5459

5560
allCommands(root, func(cmd *cobra.Command) {

0 commit comments

Comments
 (0)