Mercurial > libervia-backend
comparison doc/libervia-cli/list.rst @ 4037:524856bd7b19
massive refactoring to switch from camelCase to snake_case:
historically, Libervia (SàT before) was using camelCase as allowed by PEP8 when using a
pre-PEP8 code, to use the same coding style as in Twisted.
However, snake_case is more readable and it's better to follow PEP8 best practices, so it
has been decided to move on full snake_case. Because Libervia has a huge codebase, this
ended with a ugly mix of camelCase and snake_case.
To fix that, this patch does a big refactoring by renaming every function and method
(including bridge) that are not coming from Twisted or Wokkel, to use fully snake_case.
This is a massive change, and may result in some bugs.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 08 Apr 2023 13:54:42 +0200 |
parents | 267e4987b58b |
children |
comparison
equal
deleted
inserted
replaced
4036:c4464d7ae97b | 4037:524856bd7b19 |
---|---|
66 $ li pubsub delete -s pubsub.example.org -i 456 | 66 $ li pubsub delete -s pubsub.example.org -i 456 |
67 | 67 |
68 import | 68 import |
69 ====== | 69 ====== |
70 | 70 |
71 Import lists from an external source. This works in the same way as | 71 import lists from an external source. This works in the same way as |
72 :ref:`libervia-cli_blog_import`: you need to specify an importer and a data location. If you let | 72 :ref:`libervia-cli_blog_import`: you need to specify an importer and a data location. If you let |
73 both positional argument empty, you'll get list of importers, if you specify importer but | 73 both positional argument empty, you'll get list of importers, if you specify importer but |
74 not data location, you'll get a description on how the importer works. | 74 not data location, you'll get a description on how the importer works. |
75 | 75 |
76 If you want to see a progress bar for the import, use the ``-P, --progress`` option, this | 76 If you want to see a progress bar for the import, use the ``-P, --progress`` option, this |
97 | 97 |
98 Get description of list importer for Bugzilla:: | 98 Get description of list importer for Bugzilla:: |
99 | 99 |
100 $ li list import bugzilla | 100 $ li list import bugzilla |
101 | 101 |
102 Import lists from a Bugzilla XML export file at ``~/bugzilla_export.xml`` to the | 102 import lists from a Bugzilla XML export file at ``~/bugzilla_export.xml`` to the |
103 ``pubsub.example.org`` PubSub service. We use default lists node and want a progression | 103 ``pubsub.example.org`` PubSub service. We use default lists node and want a progression |
104 bar:: | 104 bar:: |
105 | 105 |
106 $ li list import -P -s pubsub.example.org ~/bugzilla_export.xml | 106 $ li list import -P -s pubsub.example.org ~/bugzilla_export.xml |
107 | 107 |