Add a function for staticSuggestions

This new function wraps the boilerplate that's needed for making static
suggestion list. This could also be used for the dump_args parser (to
get rid of more boilerplate), but it's a bigger change, so I'll leave
that for another patch.

Also, the parser really NEEDS its attribute to be the unused_type,
otherwise weird stuff happens, ghosts appear and it also messes with the
attributes of other parsers. I don't know why, but oh well.

This thing has to copy because a std::initializer_list cannot be
properly captured by value in the inner lambda. Such a code builds, but
it won't do the right thing.

Change-Id: Ida0bcc86124b88d686ac86cf4743d220db86f59b
Co-authored-by: Jan Kundrát <jan.kundrat@cesnet.cz>
1 file changed
tree: 16605f6f1a5debc515be9f1452881f70cececc15
  1. .clang-format
  2. .gitmodules
  3. .zuul.yaml
  4. CMakeLists.txt
  5. Doxyfile.in
  6. LICENSE
  7. LICENSE.md
  8. README.md
  9. ci/
  10. cmake/
  11. docs/
  12. src/
  13. tests/
README.md

Console interface to NETCONF servers

License Gerrit Zuul CI taiga.io

This program provides an interactive console for working with YANG data. It can connect to NETCONF servers, and also talk to sysrepo locally.

Installation

For building, one needs:

The build process uses CMake. A quick-and-dirty build with no fancy options can be as simple as mkdir build && cd build && cmake .. && make && make install.

Bug Reporting

Issue reporting and feature requests are welcome via Taiga.io.

Development

We are using Gerrit for patch submission, code review and Continuous Integration (CI). Development roadmap and planning happens over Taiga.io.

Credits

Copyright © CESNET, https://www.cesnet.cz/ . Portions copyright © Faculty of Information Technology, Czech Technical University in Prague, https://fit.cvut.cz/ . Most of the code was written by Václav Kubernát (CESNET, formerly FIT ČVUT) and Jan Kundrát (CESNET). The project is distributed under the terms of the Apache 2.0 license.