update to v1.2.0 优化了命令模式操作

This commit is contained in:
kohgylw 2024-01-02 21:09:21 +08:00
parent f18d3685f0
commit 7e6a908833
3 changed files with 2 additions and 2 deletions

View File

@ -481,8 +481,8 @@ public class ConsoleRunner {
return currentFolder.getCurrent().getFolderId();
}
if (fname.startsWith("--")) {
int index = Integer.parseInt(fname.substring(2));
try {
int index = Integer.parseInt(fname.substring(2));
if (index >= 1 && index <= currentFolder.getFolders().size()) {
return currentFolder.getFolders().get(index - 1).getFolderId();
} else {

View File

@ -1,5 +1,5 @@
#Generated by Maven Integration for Eclipse
#Tue Jan 02 20:01:36 CST 2024
#Tue Jan 02 21:08:41 CST 2024
m2e.projectLocation=/Users/kohgylw/Programs/java_workspace/kiftd
m2e.projectName=kiftd
groupId=kohgylw