Commit Graph

82 Commits

Author SHA1 Message Date
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
Karlatemp
9a1a6dddfd
Merge remote-tracking branch 'origin/master' into no-console
# Conflicts:
#	frontend/mirai-console-pure/src/main/kotlin/net/mamoe/mirai/console/pure/ConsoleThread.kt
#	frontend/mirai-console-pure/src/main/kotlin/net/mamoe/mirai/console/pure/MiraiConsoleImplementationPure.kt
#	frontend/mirai-console-pure/src/main/kotlin/net/mamoe/mirai/console/pure/MiraiConsolePureLoader.kt
2020-09-12 19:37:56 +08:00
Him188
8f1cc48c6b Fix buildscript 2020-09-12 16:11:53 +08:00
Him188
956e193d02 Correct class naming following Kotlin formal style 2020-09-12 13:31:34 +08:00
Him188
2223451b70 Ignore blank inputs 2020-09-11 23:08:15 +08:00
Karlatemp
081b679134
Rename printlnHelpMessage to printHelpMessage 2020-09-11 21:08:12 +08:00
Karlatemp
a666dc5448
Unified code style 2020-09-11 20:52:50 +08:00
Karlatemp
a72fe42aaa
Add option --reading-replacement 2020-09-11 20:42:00 +08:00
Karlatemp
9e9c848596
Rename --drop-ansi to --no-ansi 2020-09-11 20:35:36 +08:00
Karlatemp
afed2e1de3
Review: Using list to save help for better editing. 2020-09-11 20:21:41 +08:00
Karlatemp
284f6a28e1
Rename NoNonBlockingReader to NoConsoleNonBlockingReader 2020-09-11 20:07:35 +08:00
Karlatemp
f677516a70
Review: Incoming stream should only \n coming. 2020-09-11 20:07:33 +08:00
Karlatemp
6f38654f87
Drop ansi 2020-09-11 19:45:26 +08:00
Karlatemp
12b942a27b
Fix Copyright 2020-09-11 19:28:12 +08:00
Karlatemp
f1015915ba
Working without Terminal 2020-09-11 19:22:55 +08:00
Him188
cea884c3d7 Use Permission for Permission.parent 2020-09-10 19:53:27 +08:00
Him188
7123f1e227 Ignore CancellationException in MiraiConsole.coroutineContext[CoroutineExceptionHandler] 2020-09-10 09:05:08 +08:00
Him188
335299275b Add CoroutineName for input thread 2020-09-10 09:04:31 +08:00
Him188
3c64b99553 Improve messages 2020-09-10 08:56:13 +08:00
Him188
d403d5d79c Remove mirai-console-terminal 2020-09-10 08:49:03 +08:00
Him188
7638a7e759 No more kapt 2020-09-08 15:51:45 +08:00
Him188
bffecea0a1 Fix generic types 2020-09-04 20:49:02 +08:00
dependabot[bot]
8525c8f708
Bump Mirai-Android from 9784f7c to 710128 2020-09-04 00:17:49 +08:00
Him188
decf1920b4 Expose CoroutineScopeUtils to public 2020-09-02 20:20:26 +08:00
Him188
e8bb0f0bb4 Update Plugin load mechanism for compatibility with Android 2020-08-31 19:23:56 +08:00
Him188
ae4d5074a5 Redesign CommandSender;
Optimize frontend implementation APIs
2020-08-30 17:31:52 +08:00
Him188
316a40e4bc Support PluginLoader with ServiceLoader 2020-08-28 20:07:02 +08:00
Him188
dad62058db Support staring console-pure as a daemon 2020-08-27 22:10:05 +08:00
Him188
bbf2ead3f0 Fix unmanaged coroutine job, add names to all CoroutineScopes 2020-08-27 21:33:55 +08:00
Him188
a6aa160a97 Fix delegation in Values;
Rename IllegalMiraiConsoleImplementationError to MalformedMiraiConsoleImplementationError;
Support Managers command
Misc improvements
2020-08-26 21:27:28 +08:00
Him188
e2e922905b Fix ConsoleInput, cleanup frontend 2020-08-26 09:03:09 +08:00
Him188
1e2ef14639 Use consoleLogger instead of stdout 2020-08-26 08:14:24 +08:00
Him188
ed2ef37304 Introduce PluginData and PluginConfig 2020-08-25 22:43:31 +08:00
Him188
d2b7421df7 Stop input on CancellationException 2020-08-23 19:52:24 +08:00
Him188
82e47a1bf3 Update license 2020-08-23 17:46:51 +08:00
Him188
cd60a60d97 CommandExecuteResult for executeCommand 2020-08-23 00:34:34 +08:00
Him188
98224cfe5e Fix build tasks for buildDate, cleanup 2020-08-22 20:13:05 +08:00
Him188
218fb2bdcc Public API stabilization:
- Redesign MiraiConsoleFrontEndDescription
- Redesign MiraiConsoleImplementation
- Rework path-relevant properties
- Add docs
2020-08-22 19:43:07 +08:00
Him188
0016a04d5e Rename Setting to PluginData for compatiblity issue 2020-08-22 01:36:22 +08:00
Him188
c13076eea0 Fix Settings 2020-08-20 23:46:51 +08:00
Him188
b00b3d97f0 Adjust loggers 2020-08-20 20:49:27 +08:00
Him188
3b540a102d Set -Xjvm-default=enable 2020-08-20 20:24:08 +08:00
PeratX
8f39f42e56 Fix ConsoleInternalApi in ConsoleThread 2020-08-20 12:21:54 +08:00
Karlatemp
c1090c1074
Thread safe. (#114)
* Thread safe.

* Fix OOM in Java x32
2020-08-20 12:17:31 +08:00