Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add consistency to admin cli command names #427

Merged
merged 2 commits into from
Jun 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions tools/cli/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func newAdminWorkflowCommands() []cli.Command {
},
},
{
Name: "refresh-tasks",
Name: "refresh_tasks",
Aliases: []string{"rt"},
Usage: "Refreshes all the tasks of a workflow",
Flags: []cli.Flag{
Expand Down Expand Up @@ -138,7 +138,7 @@ func newAdminShardManagementCommands() []cli.Command {
},
},
{
Name: "describe-task",
Name: "describe_task",
Aliases: []string{"dt"},
Usage: "Describe a task based on task Id, task type, shard Id and task visibility timestamp",
Flags: append(
Expand Down Expand Up @@ -172,7 +172,7 @@ func newAdminShardManagementCommands() []cli.Command {
},

{
Name: "closeShard",
Name: "close_shard",
Aliases: []string{"clsh"},
Usage: "close a shard given a shard id",
Flags: []cli.Flag{
Expand All @@ -186,7 +186,7 @@ func newAdminShardManagementCommands() []cli.Command {
},
},
{
Name: "removeTask",
Name: "remove_task",
Aliases: []string{"rmtk"},
Usage: "remove a task based on shardId, task type, taskId, and task visibility timestamp",
Flags: []cli.Flag{
Expand Down Expand Up @@ -269,7 +269,7 @@ func newAdminHistoryHostCommands() []cli.Command {
},
},
{
Name: "getshard",
Name: "get_shardid",
Aliases: []string{"gsh"},
Usage: "Get shardId for a workflowId",
Flags: []cli.Flag{
Expand Down Expand Up @@ -319,7 +319,7 @@ func newAdminNamespaceCommands() []cli.Command {
},
},
{
Name: "getnamespaceidorname",
Name: "get_namespaceidorname",
Aliases: []string{"getdn"},
Usage: "Get namespaceId or namespace",
Flags: append(getDBFlags(),
Expand Down Expand Up @@ -380,7 +380,7 @@ func newAdminKafkaCommands() []cli.Command {
},
},
{
Name: "purgeTopic",
Name: "purge_topic",
Aliases: []string{"purge"},
Usage: "purge Kafka topic by consumer group",
Flags: []cli.Flag{
Expand Down Expand Up @@ -416,7 +416,7 @@ clusters:
},
},
{
Name: "mergeDLQ",
Name: "merge_dlq",
Aliases: []string{"mgdlq"},
Usage: "Merge replication tasks to target topic(from input file or DLQ topic)",
Flags: []cli.Flag{
Expand Down Expand Up @@ -674,7 +674,7 @@ func newAdminTaskListCommands() []cli.Command {
func newAdminClusterCommands() []cli.Command {
return []cli.Command{
{
Name: "add-search-attr",
Name: "add_search_attr",
Aliases: []string{"asa"},
Usage: "whitelist search attribute",
Flags: []cli.Flag{
Expand Down