-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add command templates #132
Conversation
Add a command templates package for running external programs from OC-Daemon. It allows for defining named lists of commands that are called from specific points in OC-Daemon. For example, the command list "SplitRoutingSetupRouting" is called when Split Routing configures the routing. Each command in such a list allows for generating the command line and standard input from Go templates. The templates use the daemon configuration (and for some command lists additional information like addresses) as data input. Signed-off-by: hwipl <[email protected]>
Test Result🙌 268 Tests pass Test Details🟢 TestAddrMonStartStop (0.00s) CoverageTotal coverage: 🟩🟩🟩🟥 76.8% Coverage Details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Big improvement for readability and future maintainability. Thanks. LGTM
Add a command templates package for running external programs from OC-Daemon. It allows for defining named lists of commands that are called from specific points in OC-Daemon. For example, the command list "SplitRoutingSetupRouting" is called when Split Routing configures the routing. Each command in such a list allows for generating the command line and standard input from Go templates. The templates use the daemon configuration (and for some command lists additional information like addresses) as data input.