contributing: add section about C/C++ backend code

This commit is contained in:
Christian Breunig 2023-02-04 09:41:16 +01:00
parent e84e0bf11c
commit d39ce49e2f

View File

@ -682,6 +682,25 @@ Migrating old CLI
- None - None
- All logic should be in the scripts - All logic should be in the scripts
C++ Backend Code
================
The CLI parser used in VyOS is a mix of bash, bash-completion helper and the
C++ backend library [vyatta-cfg](https://github.com/vyos/vyatta-cfg). This
section is a reference of common CLI commands and the respective entry point
in the C/C++ code.
* ``set``
- https://github.com/vyos/vyatta-cfg/blob/0f42786a0b3/src/cstore/cstore.cpp#L352
- https://github.com/vyos/vyatta-cfg/blob/0f42786a0b3/src/cstore/cstore.cpp#L2549
* ``commit``
- https://github.com/vyos/vyatta-cfg/blob/0f42786a0b3/src/commit/commit-algorithm.cpp#L1252
Continuous Integration Continuous Integration
====================== ======================