Commit Graph

125 Commits

Author SHA1 Message Date
Him188
94f54b7c6d Replace usages of unstable API 2021-04-25 19:26:20 +08:00
Him188
85322b3321 Terminal: make MiraiConsoleImplementationTerminal open and enable all logs for tests 2021-04-10 14:57:08 +08:00
ZRnQ
da32c90eed
Fix: CommandSender 类型不满足要求时应提示 "需要由xxx执行" 而不是 "参数类型错误" (#309) 2021-03-11 22:49:33 +08:00
Him188
0970343bdb Configure workingDir for bots, support custom file name for deviceInfo, close #249 2021-02-01 08:53:26 +08:00
Him188
2e4ca12929 Configure experimental annotations, binary compatibility validator, dokka, build, publishing, for mirai-console. 2021-01-28 10:13:42 +08:00
Him188
0b957d6475 Update permitteeIds to new temp user structure 2021-01-12 17:31:10 +08:00
Karlatemp
8529704378
Improve LoginSolver selecting 2020-12-26 23:44:31 +08:00
Him188
113fc20cf9 2.0-M2-dev-4 2020-12-25 20:45:38 +08:00
Him188
cbbd6eb083 Update to mirai-core 2.0-M1-dev-3 2020-12-18 16:36:49 +08:00
Karlatemp
e5bc588da7
Stop input service when catch any error
Fix #229
2020-11-29 10:03:24 +08:00
Him188
4fd28ef68f
Merge branch 'master' into ansi 2020-11-28 12:32:38 +08:00
Karlatemp
1c7ebe2413
Suppress jline warning 2020-11-19 13:06:23 +08:00
Him188
b7b9149a06 Don't show stacktrace for IllegalArgument failure 2020-11-16 15:42:14 +08:00
Him188
58c91e80fb User-friendly prompt for command execute failure 2020-11-16 15:31:04 +08:00
Him188
fbe5ce0970 Remove CommandExecuteResult.status 2020-11-16 14:47:45 +08:00
Him188
5e3ffafd5a Merge remote-tracking branch 'origin/master' 2020-11-16 14:46:05 +08:00
Him188
72ec0aa6c9 Remove CommandExecuteResult.commandName and CommandExecuteResult.args 2020-11-16 14:45:45 +08:00
Karlatemp
4526f71cc7
Let the console know the full stacktrace for the IllegalArgument 2020-11-16 12:26:14 +08:00
Him188
64790d0114 Call parse with errors 2020-11-16 09:41:07 +08:00
Karlatemp
7dd4a9669b
Fix console stopping, fix #221
- Make StopCommand async
- Close terminal reader only
2020-11-12 12:38:49 +08:00
Karlatemp
81aa60fe5d
Review AnsiMessageBuilder
- Rename isAnsiSupport to isAnsiSupported
- Rename AnsiMessageBuilder.builder to delegate
- Rename factory function
- Move buildAnsiMessage to top-level
- Move CommandSender.sendAnsiMessage to top-level
- Add String.dropAnsi(): String
2020-11-07 11:23:26 +08:00
Karlatemp
01418845f3
Ansi support 2020-11-06 13:41:46 +08:00
Karlatemp
7f35409b50
Typo 2020-10-30 18:25:55 +08:00
Karlatemp
f1113bbcce
Merge remote-tracking branch 'origin/master' into logger 2020-10-30 17:41:03 +08:00
Him188
ba76939b6f Configure testing environment 2020-10-30 10:44:56 +08:00
Him188
03467a6f45 Simplify source root structure 2020-10-30 10:28:18 +08:00
Him188
2c5f9ebcf4 Update copyright 2020-10-28 13:35:15 +08:00
Karlatemp
97ca3d38f2
inline createLogger 2020-10-26 23:37:34 +08:00
Karlatemp
544e11747c
Redesign LoggerController 2020-10-26 23:20:10 +08:00
Karlatemp
0a76a4b71a
Review LoggerController
- Delete LoggerControllerPlatformBase
- Rename LoggerControllerForFrontend to LoggerControllerImpl
2020-10-26 12:35:29 +08:00
Karlatemp
b60ce7d856
Merge remote-tracking branch 'origin/master' into logger 2020-10-25 23:48:16 +08:00
Karlatemp
cef1326432
Rename MiraiConsoleLoggerController to LoggerController 2020-10-25 23:00:59 +08:00
Him188
b9580ffcbd Review command 2020-10-24 21:19:50 +08:00
Karlatemp
d477b79e65
KDoc for MiraiConsoleLoggerController 2020-10-24 19:51:00 +08:00
Karlatemp
96017ae862
MiraiConsoleLoggerController 2020-10-24 19:34:16 +08:00
Him188
d10f2b4bea Support vararg in command 2020-10-24 13:14:25 +08:00
Him188
fa43f2689c Merge branch 'master' into command
# Conflicts:
#	tools/gradle-plugin/src/main/kotlin/net/mamoe/mirai/console/gradle/VersionConstants.kt
2020-10-20 14:11:51 +08:00
Karlatemp
7a2b6e721c
Fix build 2020-09-27 13:16:45 +08:00
Karlatemp
0d21ee4c1b
Fix stdout encoding 2020-09-27 13:01:16 +08:00
Karlatemp
5ef8cec447
Fix Terminal version rendering. 2020-09-26 23:51:00 +08:00
Him188
2104cc2192 Merge branch 'master' into command
# Conflicts:
#	backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/description/CommandArgumentContext.kt
2020-09-20 21:57:10 +08:00
Karlatemp
eb7cd3811d
Deploy SemVersion 2020-09-20 18:02:35 +08:00
Karlatemp
58d799581b
Add CommandExecuteResult.IllegalArgument 2020-09-20 09:40:51 +08:00
Him188
100bc10404 Fix shadow 2020-09-20 00:28:57 +08:00
Him188
7762ea2f65 Separate Command.names into Command.primaryName and Command.secondaryNames such that primaryName is compulsory while secondaryNames are optional. 2020-09-18 22:55:19 +08:00
Karlatemp
8fe2506e75
Terminal (#179)
* Rename ConsolePure to ConsoleTerminal

* Fix the way to close console with Ctrl+C

* Fix windows pipeline error. Fix EndOfFileException

* Add ConsoleExperimentalApi

* Collect imports

* Review

- Change old CLI main deprecation level to ERROR
- Update documents
- Update tasks from pure to terminal

* Fix error in closing console.

* Fix terminal closing and Ctrl+C closing.

* Add console shut-downing status

* Don't invokeOnCompletion when console shut-downing

* Fix Input interrupt

* Ensure active unless console is shut downing

* Change MiraiConsole.isShutDowning to `!job.isActive`

* Code Review

- Update Message on MiraiConsolePureLoader.kt
- Change MiraiConsole.isShutDowning to MiraiConsole.isActive
- Change MiraiConsole.shutdown to ConsoleInternalApi

* run catching

* Fix console input

* Update shutdown

* Fix module

* Revert 5199395

* Typo
2020-09-18 12:43:57 +08:00
Him188
77bc76be24
Merge pull request #163 from Karlatemp/no-console
Working without Terminal
2020-09-13 02:12:29 +08:00
Him188
6b9ec05c98 Review plugins:
Move PluginLoader into plugin.loader;
Improve docs;
Change extension PluginLoader.description to member function PluginLoader.getPluginDescription;
Change builtIn loader lists with Lazy items;
Add Regex for testing plugin names and ids.
2020-09-12 20:20:41 +08:00
Him188
5c6b4aa8cc Rename JarPluginLoader to JvmPluginLoader. Rename JvmPluginLoader.Companion to JvmPluginLoader.BuiltIn 2020-09-12 19:43:51 +08:00
Karlatemp
11688b1dec
Correct class naming following Kotlin formal style 2020-09-12 19:40:34 +08:00