jad support completion. #323

This commit is contained in:
hengyunabc 2019-02-08 01:47:59 +08:00
parent 349c426bd1
commit 9f57c2c9a6

View File

@ -2,6 +2,8 @@ package com.taobao.arthas.core.command.klass100;
import com.taobao.arthas.core.advisor.Enhancer;
import com.taobao.arthas.core.command.Constants;
import com.taobao.arthas.core.shell.cli.Completion;
import com.taobao.arthas.core.shell.cli.CompletionUtils;
import com.taobao.arthas.core.shell.command.AnnotatedCommand;
import com.taobao.arthas.core.shell.command.CommandProcess;
import com.taobao.arthas.core.util.ClassUtils;
@ -176,4 +178,10 @@ public class JadCommand extends AnnotatedCommand {
process.write("No class found for: " + classPattern + "\n");
}
@Override
public void complete(Completion completion) {
if (!CompletionUtils.completeClassName(completion)) {
super.complete(completion);
}
}
}