yang-cli: automatically extend the on-disk search path

When asking for a file to load as a YANG module, automatically add its
enclosing directory to the list of search paths. That way, if a module
imports other modules from the same directory, no `-s` parameter will be
needed.

There should be no harm in adding the same path over and over again, so
there's no point in tracking what paths have been already enabled.

Change-Id: I336efb7b5e6f923e7d9f82741ee93a88bb32bdbe
1 file changed
tree: ebf5549873290ea90d3a1e4cec04c80fd4be776c
  1. .clang-format
  2. .gitmodules
  3. .zuul.yaml
  4. CMakeLists.txt
  5. Doxyfile.in
  6. LICENSE
  7. README.md
  8. ci/
  9. cmake/
  10. docs/
  11. src/
  12. 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, work as a standalone YANG data editor, or talk to sysrepo locally.

Installation

For building, one needs:

At times the devel branch of libyang, sysrepo, libnetconf2 and Netopeer2 might be required due to fresh bugfixes and behavior changes.

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 over GitHub.

Development

We are using Gerrit for patch submission, code review and Continuous Integration (CI). A quick introduction is recommended for first-time Gerrit users. Choose CESNET - Sign in with GitHub for login. 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.