hide the shutdown command. #982

This commit is contained in:
hengyunabc
2019-12-25 19:40:55 +08:00
parent 5abcb65ef3
commit ee08fa5b34
10 changed files with 14 additions and 14 deletions
@@ -91,8 +91,6 @@ public class BuiltinCommandPack implements CommandResolver {
commands.add(Command.create(ClsCommand.class));
commands.add(Command.create(ResetCommand.class));
commands.add(Command.create(VersionCommand.class));
commands.add(Command.create(ShutdownCommand.class));
commands.add(Command.create(StopCommand.class));
commands.add(Command.create(SessionCommand.class));
commands.add(Command.create(SystemPropertyCommand.class));
commands.add(Command.create(SystemEnvCommand.class));
@@ -105,5 +103,7 @@ public class BuiltinCommandPack implements CommandResolver {
commands.add(Command.create(GrepCommand.class));
commands.add(Command.create(TeeCommand.class));
commands.add(Command.create(ProfilerCommand.class));
commands.add(Command.create(ShutdownCommand.class));
commands.add(Command.create(StopCommand.class));
}
}
@@ -6,6 +6,7 @@ import com.taobao.arthas.core.shell.command.AnnotatedCommand;
import com.taobao.arthas.core.shell.command.CommandProcess;
import com.taobao.arthas.core.util.affect.EnhancerAffect;
import com.taobao.arthas.core.util.matcher.WildcardMatcher;
import com.taobao.middleware.cli.annotations.Hidden;
import com.taobao.middleware.cli.annotations.Name;
import com.taobao.middleware.cli.annotations.Summary;
@@ -20,6 +21,7 @@ import java.lang.instrument.UnmodifiableClassException;
*/
@Name("shutdown")
@Summary("Shutdown Arthas server and exit the console")
@Hidden
public class ShutdownCommand extends AnnotatedCommand {
@Override
public void process(CommandProcess process) {
@@ -11,7 +11,7 @@ import com.taobao.middleware.cli.annotations.Summary;
* @see ShutdownCommand
*/
@Name("stop")
@Summary("Stop/Shutdown Arthas server and exit the console. Alias for shutdown.")
@Summary("Stop/Shutdown Arthas server and exit the console.")
public class StopCommand extends AnnotatedCommand {
@Override
public void process(CommandProcess process) {