Skip to content

Commit 8aa47f4

Browse files
Add consistency to cli admin command names (#427)
Co-authored-by: Shawn Hathaway <[email protected]>
1 parent 89e19c7 commit 8aa47f4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tools/cli/admin.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func newAdminWorkflowCommands() []cli.Command {
7474
},
7575
},
7676
{
77-
Name: "refresh-tasks",
77+
Name: "refresh_tasks",
7878
Aliases: []string{"rt"},
7979
Usage: "Refreshes all the tasks of a workflow",
8080
Flags: []cli.Flag{
@@ -138,7 +138,7 @@ func newAdminShardManagementCommands() []cli.Command {
138138
},
139139
},
140140
{
141-
Name: "describe-task",
141+
Name: "describe_task",
142142
Aliases: []string{"dt"},
143143
Usage: "Describe a task based on task Id, task type, shard Id and task visibility timestamp",
144144
Flags: append(
@@ -172,7 +172,7 @@ func newAdminShardManagementCommands() []cli.Command {
172172
},
173173

174174
{
175-
Name: "closeShard",
175+
Name: "close_shard",
176176
Aliases: []string{"clsh"},
177177
Usage: "close a shard given a shard id",
178178
Flags: []cli.Flag{
@@ -186,7 +186,7 @@ func newAdminShardManagementCommands() []cli.Command {
186186
},
187187
},
188188
{
189-
Name: "removeTask",
189+
Name: "remove_task",
190190
Aliases: []string{"rmtk"},
191191
Usage: "remove a task based on shardId, task type, taskId, and task visibility timestamp",
192192
Flags: []cli.Flag{
@@ -269,7 +269,7 @@ func newAdminHistoryHostCommands() []cli.Command {
269269
},
270270
},
271271
{
272-
Name: "getshard",
272+
Name: "get_shardid",
273273
Aliases: []string{"gsh"},
274274
Usage: "Get shardId for a workflowId",
275275
Flags: []cli.Flag{
@@ -319,7 +319,7 @@ func newAdminNamespaceCommands() []cli.Command {
319319
},
320320
},
321321
{
322-
Name: "getnamespaceidorname",
322+
Name: "get_namespaceidorname",
323323
Aliases: []string{"getdn"},
324324
Usage: "Get namespaceId or namespace",
325325
Flags: append(getDBFlags(),
@@ -380,7 +380,7 @@ func newAdminKafkaCommands() []cli.Command {
380380
},
381381
},
382382
{
383-
Name: "purgeTopic",
383+
Name: "purge_topic",
384384
Aliases: []string{"purge"},
385385
Usage: "purge Kafka topic by consumer group",
386386
Flags: []cli.Flag{
@@ -416,7 +416,7 @@ clusters:
416416
},
417417
},
418418
{
419-
Name: "mergeDLQ",
419+
Name: "merge_dlq",
420420
Aliases: []string{"mgdlq"},
421421
Usage: "Merge replication tasks to target topic(from input file or DLQ topic)",
422422
Flags: []cli.Flag{
@@ -674,7 +674,7 @@ func newAdminTaskListCommands() []cli.Command {
674674
func newAdminClusterCommands() []cli.Command {
675675
return []cli.Command{
676676
{
677-
Name: "add-search-attr",
677+
Name: "add_search_attr",
678678
Aliases: []string{"asa"},
679679
Usage: "whitelist search attribute",
680680
Flags: []cli.Flag{

0 commit comments

Comments
 (0)