From 931cb9e5818b202c3855321c9b12a6149d121ffa Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Mon, 11 Apr 2022 10:50:01 +0500 Subject: [PATCH] use "cluster.raft.{ps,add,remove}" --- ...command_raft_server_add.go => command_cluster_raft_add.go} | 4 ++-- ...{command_raft_cluster_ps.go => command_cluster_raft_ps.go} | 4 ++-- ...d_raft_server_remove.go => command_cluster_raft_remove.go} | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename weed/shell/{command_raft_server_add.go => command_cluster_raft_add.go} (93%) rename weed/shell/{command_raft_cluster_ps.go => command_cluster_raft_ps.go} (96%) rename weed/shell/{command_raft_server_remove.go => command_cluster_raft_remove.go} (94%) diff --git a/weed/shell/command_raft_server_add.go b/weed/shell/command_cluster_raft_add.go similarity index 93% rename from weed/shell/command_raft_server_add.go rename to weed/shell/command_cluster_raft_add.go index 843882810..e5f3c41c9 100644 --- a/weed/shell/command_raft_server_add.go +++ b/weed/shell/command_cluster_raft_add.go @@ -16,14 +16,14 @@ type commandRaftServerAdd struct { } func (c *commandRaftServerAdd) Name() string { - return "raft.server.add" + return "cluster.raft.add" } func (c *commandRaftServerAdd) Help() string { return `add a server to the raft cluster Example: - raft.server.add -id -address -voter + cluster.raft.add -id -address -voter ` } diff --git a/weed/shell/command_raft_cluster_ps.go b/weed/shell/command_cluster_raft_ps.go similarity index 96% rename from weed/shell/command_raft_cluster_ps.go rename to weed/shell/command_cluster_raft_ps.go index 6589e3629..ea868db06 100644 --- a/weed/shell/command_raft_cluster_ps.go +++ b/weed/shell/command_cluster_raft_ps.go @@ -16,13 +16,13 @@ type commandRaftClusterPs struct { } func (c *commandRaftClusterPs) Name() string { - return "raft.cluster.ps" + return "cluster.raft.ps" } func (c *commandRaftClusterPs) Help() string { return `check current raft cluster status - raft.cluster.ps + cluster.raft.ps ` } diff --git a/weed/shell/command_raft_server_remove.go b/weed/shell/command_cluster_raft_remove.go similarity index 94% rename from weed/shell/command_raft_server_remove.go rename to weed/shell/command_cluster_raft_remove.go index 56b527478..532a1469c 100644 --- a/weed/shell/command_raft_server_remove.go +++ b/weed/shell/command_cluster_raft_remove.go @@ -16,14 +16,14 @@ type commandRaftServerRemove struct { } func (c *commandRaftServerRemove) Name() string { - return "raft.server.remove" + return "cluster.raft.remove" } func (c *commandRaftServerRemove) Help() string { return `remove a server from the raft cluster Example: - raft.server.remove -id + cluster.raft.remove -id ` }