-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark系统的又一bug修复 | 完成Shell部分 | 优化源码目录结构
- Loading branch information
Maxel Black
committed
Feb 19, 2021
1 parent
84c53fe
commit 1844c10
Showing
20 changed files
with
202 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ plugins { | |
} | ||
|
||
group 'ink.pd2' | ||
version '1.0.0-a110' | ||
version '1.0.0-a111' | ||
|
||
repositories { | ||
mavenCentral() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...main/java/ink/pd2/shell/core/Command.java → src/main/java/ink/pd2/shell/api/Command.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package ink.pd2.shell.api; | ||
|
||
import ink.pd2.shell.core.CommandParameter; | ||
import ink.pd2.shell.core.Shell; | ||
|
||
public interface CommandEvent { | ||
void run(Shell shell, CommandParameter parameter); | ||
} |
3 changes: 1 addition & 2 deletions
3
...ain/java/ink/pd2/shell/plugin/Plugin.java → src/main/java/ink/pd2/shell/api/Plugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...plugin/PluginInitializationException.java → ...ll/api/PluginInitializationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
src/main/java/ink/pd2/shell/core/CommandExecutedListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,33 @@ | ||
package ink.pd2.shell.core; | ||
|
||
public interface CommandExecutedListener extends ink.pd2.shell.core.Listener { | ||
|
||
/** | ||
* <h2>getPriority() | 事件执行的优先级</h2> | ||
* | ||
* <p>可用的优先级有 {@code PRIORITY_HIGH} (高优先级), | ||
* {@code PRIORITY_MEDIUM} (中等优先级), | ||
* {@code PRIORITY_LOW} (低优先级)</p> | ||
* | ||
* @return 优先级 | ||
* | ||
* @see ink.pd2.shell.core.Shell | ||
* | ||
* @since PSH 1.0 | ||
*/ | ||
|
||
int getPriority(); | ||
|
||
/** | ||
* <h2>event() | 事件活动</h2> | ||
* | ||
* @param shell 执行指令的Shell对象 | ||
* @param command 执行的指令对象 | ||
* | ||
* @return 下一步操作: true为继续运行, false为退出, null为跳过其他事件直接进入下一循环 | ||
* | ||
* @since PSH 1.0 | ||
*/ | ||
|
||
Boolean event(Shell shell, String command); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.