-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Changed: Refactor LocalClientSocket #2817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Since `getLogString()` and `getMarkdownString()` has same log-appeding structure, added `getLogVariableList()` which returns a list of `Pair<String, Object>` that contains variables for creating logs.
`getMarkdownString()` in `ReportInfo.java`, `LocalClientSocket.java` and `LocalSocketRunConfig.java`. Add variables `label` and `object` in `getLogString()` and `getMarkdownString()` to explain which variables are used.
|
This wasn't properly rebased and you are pushing merge commits to all your pull requests. Secondly, with this Instead, create specialized classes would be like The function will automatically add Both the classes could actually implement an interface You can create a single pull request for the log and markdown string replacements. |
|
@agnostic-apollo |
|
You are welcome. Let me know if you need any help or something is unclear. |
|
@agnostic-apollo |
|
Sometimes there are sub sections that have with nested keys termux-app/termux-shared/src/main/java/com/termux/shared/net/socket/local/LocalSocketRunConfig.java Line 215 in 231ecff
termux-app/termux-shared/src/main/java/com/termux/shared/net/socket/local/LocalSocketManager.java Line 395 in 231ecff
or content termux-app/termux-shared/src/main/java/com/termux/shared/shell/command/ExecutionCommand.java Line 500 in 231ecff
For markdown, heading size depends on For json and yaml, this could be implemented as keys instead, but that would require proper opening and closing. I haven't thought this too much, there is probably a way for all this. You can skip it for now. We can hard code it for markdown's case for now, since execution command doesn't log that stuff for log string and only markdown. |
|
Hey @rubinstory, was there any progress on this? |
Changed: Refactor LocalClientSocket