Skip to content

Commit

Permalink
Use GroupCommand as the parent of RaftMetaConfCommand.
Browse files Browse the repository at this point in the history
  • Loading branch information
idellzheng committed Aug 16, 2023
1 parent 8a5556d commit 24b7d1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 60 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
package org.apache.ratis.shell.cli.sh.command;

import org.apache.ratis.shell.cli.sh.group.RaftMetaConfCommand;
import org.apache.ratis.shell.cli.sh.group.GroupInfoCommand;
import org.apache.ratis.shell.cli.sh.group.GroupListCommand;

Expand All @@ -32,7 +33,7 @@ public class GroupCommand extends AbstractParentCommand {

private static final List<Function<Context, AbstractRatisCommand>> SUB_COMMAND_CONSTRUCTORS
= Collections.unmodifiableList(Arrays.asList(
GroupInfoCommand::new, GroupListCommand::new));
GroupInfoCommand::new, GroupListCommand::new, RaftMetaConfCommand::new));
/**
* @param context command context
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ratis.shell.cli.sh.generation;
package org.apache.ratis.shell.cli.sh.group;

import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Option;
Expand All @@ -35,6 +35,9 @@
import java.util.ArrayList;
import java.util.List;

/**
* Command for generate a new raft-meta.conf file, which is used to move a raft node to a new node.
*/
public class RaftMetaConfCommand extends AbstractRatisCommand {
public static final String PATH_OPTION_NAME = "path";

Expand Down

0 comments on commit 24b7d1f

Please sign in to comment.