Add an option to skip processing included annotations files. This option
can be useful to convert files from an old format to a newer one, by
dumping the contant of the local leaf-node annotations file, instead of
including the content of external files.
Example:
$ annotations -f debian.lowlatency/config/annotations --no-include > annotations.new
[ check if everything is correct in annotations.new ]
$ mv annotations.new debian.lowlatency/config/annotations
Signed-off-by: Andrea Righi <email address hidden>
Allow to read and dump all annotations data in pure JSON format.
With this change applied the "annotations" script is able to read either
the old custom format (format version 4) or a new pure-JSON format
(format version 5).
It is possible to convert an old annotations file to the newer format
simply by running "annotations" (no argument): the script will parse the
old annotations (format version 4) and it will dump in output the new
content in the new pure-JSON format (format version 5).
Signed-off-by: Andrea Righi <email address hidden>
annotations-tools: add (optional) support to argcomplete
With this change applied and the argcomplete python module available in
the system it can be possible to enable bash autocompletion for
annotations.
The autocompletion script can be generated running the following
command (a proper installation script/packaging will take care of this
in the future):
$ register-python-argcomplete annotations
Signed-off-by: Andrea Righi <email address hidden>