libervia-backend/frontends/src/jp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Goffi b8e62dd69c jp: --output option:
- new --output option can be added wich use_output. use_output can be True (in which case it wild default to C.OUTPUT_TEXT), or any of C.OUTPUT_TYPES (currently text, list and dict)
    - output change the output format mainly to make command result parsing more easy, but it can also be use to add fancy effects (like coloration)
    - outputs are added with plugins in the same way as commands (import of both is done in the same method)
    - in the command class, output need to be declared with use_output=C.OUTPUT_xxx, then the data only need to be processed with self.output(data)
    - outputs can have description (not used yet)
    - use_xxx argument handling has been refactored (minor refactoring) to be more generic
    - first outputs are "default", "json" (pretty printed) and "json_raw" (compact json)
    - the first command to use them is "profile list"
2016-04-23 23:10:03 +02:00
..
__init__.py jp: refactoring: 2014-02-10 13:44:09 +01:00
base.py jp: --output option: 2016-04-23 23:10:03 +02:00
cmd_adhoc.py plugin adhoc_dbus, jp (cmd/adhoc): fixes adHocDBusAddAuto when no bus is found 2016-04-17 13:37:40 +02:00
cmd_blog.py jp (blog/edit): use utf-8-sig to decode content file to avoid BOM being propaged to content 2016-03-25 15:32:43 +01:00
cmd_bookmarks.py jp: all commands now use the new start method and set need_loop in __init__ when needed 2016-02-29 16:52:51 +01:00
cmd_file.py jp (file): fixed bad quit call 2016-03-05 13:17:29 +01:00
cmd_info.py jp: all commands now use the new start method and set need_loop in __init__ when needed 2016-02-29 16:52:51 +01:00
cmd_message.py jp: all commands now use the new start method and set need_loop in __init__ when needed 2016-02-29 16:52:51 +01:00
cmd_param.py jp: all commands now use the new start method and set need_loop in __init__ when needed 2016-02-29 16:52:51 +01:00
cmd_pipe.py jp: all commands now use the new start method and set need_loop in __init__ when needed 2016-02-29 16:52:51 +01:00
cmd_profile.py jp: --output option: 2016-04-23 23:10:03 +02:00
cmd_roster.py jp (cmd/roster): fixes division by zero exceptions 2016-04-17 13:00:44 +02:00
constants.py jp: --output option: 2016-04-23 23:10:03 +02:00
jp jp: --output option: 2016-04-23 23:10:03 +02:00
output_std.py jp: --output option: 2016-04-23 23:10:03 +02:00