mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-12-22 20:58:47 +00:00
fix: 修复几个逻辑上的错误
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
6aa2295adf
commit
0a0e94a7fe
31
.classpath
31
.classpath
@ -1,31 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
23
.project
23
.project
@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>Yum</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
4
pom.xml
4
pom.xml
@ -58,8 +58,10 @@
|
||||
<url>http://ci.yumc.pw/job/${project.artifactId}/</url>
|
||||
</ciManagement>
|
||||
<properties>
|
||||
<update.description>§a本插件最后一次更新 2.7.8 版本</update.description>
|
||||
<update.description>§a补丁包 2.7.9 版本</update.description>
|
||||
<update.changes>
|
||||
§6- §cfix: §7修复一个tab补全产生的错误;
|
||||
§6- §btip: §a本插件最后一次更新 2.7.8 版本
|
||||
§6- §afeat: §7线程中断只显示一次调试信息;
|
||||
§6- §afeat: §7更新线程检查 添加调试;
|
||||
§6- §afeat: §7修改显示前缀;
|
||||
|
@ -21,7 +21,7 @@ public class PluginTabComplete implements Executor {
|
||||
|
||||
@Tab
|
||||
public List<String> listtab(CommandSender sender, String label, String[] args) {
|
||||
if (args[0].equalsIgnoreCase("install") || args[0].equalsIgnoreCase("i")) {
|
||||
if (args.length > 1 && args[0].equalsIgnoreCase("install") || args[0].equalsIgnoreCase("i")) {
|
||||
return StrKit.copyPartialMatches(args[1], YumAPI.getRepo().getAllPluginName(), new ArrayList<String>());
|
||||
} else if (args[0].equalsIgnoreCase("repo") || args[0].equalsIgnoreCase("r")) {
|
||||
if (args.length == 2) { return StrKit.copyPartialMatches(args[1], Arrays.asList("add", "all", "list", "delall", "clean", "update", "del"), new ArrayList<String>()); }
|
||||
|
@ -425,12 +425,13 @@ public class YumCommand implements Executor {
|
||||
@Sort(13)
|
||||
@Async
|
||||
public void update(CommandSender sender, String argstring) {
|
||||
String[] args = argstring.split(" ");
|
||||
switch (args.length) {
|
||||
case 0:
|
||||
if (argstring == null) {
|
||||
YumAPI.getRepo().updateRepositories(sender);
|
||||
sender.sendMessage("§6仓库: §a仓库缓存数据已更新!");
|
||||
break;
|
||||
return;
|
||||
}
|
||||
String[] args = argstring.split(" ");
|
||||
switch (args.length) {
|
||||
case 1:
|
||||
case 2:
|
||||
String pluginname = args[0];
|
||||
@ -503,7 +504,6 @@ public class YumCommand implements Executor {
|
||||
* @param key
|
||||
* 实体Key
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
private void sendEntryList(CommandSender sender, String prefix, Map<String, Object> map, String key) {
|
||||
List<String> values = (List<String>) map.get(key);
|
||||
if (values != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user