feat: improve tmux_logger with flexible argument parsing
- Add structured argument parsing to `tmux_logger` utility - Introduce `--no-log` and `--logreset` command-line options - Enable dynamic log path resolution and pane-specific directories - Simplify tmux pane logging integration, remove buffer script - Standardize log category output padding in `categorize_output`
This commit is contained in:
@@ -6,16 +6,14 @@ import freeflowuniverse.herolib.schemas.jsonschema { Reference, decode_schemaref
|
||||
|
||||
pub fn decode_json_any(data string) !Any {
|
||||
// mut o:=decode(data)!
|
||||
return json2.decode[json2.Any](data)!
|
||||
return json2.decode[Any](data)!
|
||||
}
|
||||
|
||||
pub fn decode_json_string(data string) !string {
|
||||
mut o := decode(data)!
|
||||
return json.encode(o)!
|
||||
return json.encode(o)
|
||||
}
|
||||
|
||||
|
||||
|
||||
pub fn decode(data string) !OpenRPC {
|
||||
// mut object := json.decode[OpenRPC](data) or { return error('Failed to decode json\n=======\n${data}\n===========\n${err}') }
|
||||
mut object := json.decode(OpenRPC, data) or {
|
||||
|
||||
Reference in New Issue
Block a user