From d39ce49e2f54b99433c5c661fc1cb6efbbe6c930 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 4 Feb 2023 09:41:16 +0100 Subject: contributing: add section about C/C++ backend code --- docs/contributing/development.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'docs') diff --git a/docs/contributing/development.rst b/docs/contributing/development.rst index 7d90ac0f..1f296144 100644 --- a/docs/contributing/development.rst +++ b/docs/contributing/development.rst @@ -682,6 +682,25 @@ Migrating old CLI - None - 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 ====================== -- cgit v1.2.3