Mercurial > libervia-backend
annotate src/bridge/bridge_constructor/mediawiki_template.tpl @ 1950:227a4e617549
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"
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 23 Apr 2016 23:10:03 +0200 |
parents | aebc8ba05129 |
children |
rev | line source |
---|---|
740
aebc8ba05129
bridge (constructor): added categories for the mediawiki export
souliane <souliane@mailoo.org>
parents:
278
diff
changeset
|
1 [[Catégorie:Salut à Toi]] |
aebc8ba05129
bridge (constructor): added categories for the mediawiki export
souliane <souliane@mailoo.org>
parents:
278
diff
changeset
|
2 [[Catégorie:documentation développeur]] |
aebc8ba05129
bridge (constructor): added categories for the mediawiki export
souliane <souliane@mailoo.org>
parents:
278
diff
changeset
|
3 |
278 | 4 = Overview = |
5 This is an autogenerated doc for SàT bridge's API | |
6 = Signals = | |
7 ##SIGNALS_PART## | |
8 = Methods = | |
9 ##METHODS_PART## | |
10 ---- | |
11 ##TIMESTAMP## |