summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-03-06 20:04:54 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-03-06 20:04:54 +0100
commit8f930879218b11f7f4ed5c4a8f9b20137414f9c8 (patch)
treecfc1b0d89f3c35595c3be09e435d9efa5188ad73 /doc
parent8c2a215340c181a2c5abec9aa67afc0e1e26df04 (diff)
downloadclufter-8f930879218b11f7f4ed5c4a8f9b20137414f9c8.tar.gz
clufter-8f930879218b11f7f4ed5c4a8f9b20137414f9c8.tar.xz
clufter-8f930879218b11f7f4ed5c4a8f9b20137414f9c8.zip
doc/HACKING: mention conventions connected with cli_{un,}decor
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/HACKING15
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/HACKING b/doc/HACKING
index 804a6c2..52fa71e 100644
--- a/doc/HACKING
+++ b/doc/HACKING
@@ -47,7 +47,20 @@ Notable points
reserved for implicit ones (technically, not plugins, but can be used
on a few places accepting plugins) such as XML
-3. to ease the perception of embedded XSLT snippets in the Python files,
+3. use cli_{un,}decor in the code imposes several assumptions that rather
+ be followed (some are also imposed by lexical structure of a valid
+ Python identifier, which is also the main reason for this dichotomy):
+
+ - command-line options as declared in the docstrings as well as actual
+ names of function parameters should always stick with underscore
+ notation (although they will be presented with dashes in CLI)
+
+ - all plugin-identifying identifiers are forced to use underscore
+ notation, but again, CLI will present it with dashes; also
+ CommandAlias-backed functions should return string already
+ promoted to such dash notation
+
+x. to ease the perception of embedded XSLT snippets in the Python files,
there is respective _vimrc_local.vim provided (in filters/cluster)
so either run the contained sequence manually, or install lh-vim [1]
(or get its minimal subset via [2]) -- that is also why it is strongly