fix: Update port and improve logging

- Change server port from 8086 to 8080
- Use `console.print_info` for logging instead of `println`
- Improve error handling in `decode_generic`
- Update JSONRPC imports for consistency
- Add `console.print_stderr` for not found methods
- Refactor `DBCalendar.list` to remove redundant `println`
- Add `console.print_info` for logging fallback
- Introduce `print_info` in console module for blue text output
This commit is contained in:
Mahmoud-Emad
2025-09-22 10:24:15 +03:00
parent 255b8da0e7
commit bb0b9d2ad9
10 changed files with 59 additions and 51 deletions

View File

@@ -99,5 +99,16 @@ pub fn print_green(txt string) {
c.reset()
}
// Print info in blue color
pub fn print_info(txt string) {
mut c := get()
if c.prev_title || c.prev_item {
lf()
}
txt2 := trim(texttools.indent(txt, ' . '))
cprintln(foreground: .blue, text: txt2)
c.reset()
}
// import freeflowuniverse.herolib.ui.console
// console.print_header()