-
Notifications
You must be signed in to change notification settings - Fork 0
Support yaml configs #2
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| def install | ||
| args = std_cmake_args | ||
| # if build.with? "static-lib" |
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.
Not sure osquery standard for this or how to ensure this flag gets set
osquery/config/config.cpp
Outdated
| #include <osquery/registry.h> | ||
| #include <osquery/tables.h> | ||
|
|
||
| #include "yaml-cpp/yaml.h" |
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.
Did you mean to use <yaml-cpp/yaml.h> instead of "yaml-cpp/yaml.h". By convention - you use the angle brackets when it's part of the include path. You use the quotation marks when it's local to your own directory.
osquery/config/config.cpp
Outdated
| convertedJsonWriter.Bool(false); | ||
| } else { | ||
| if (node.Tag() != "!") { | ||
| const char* end = nodeVal.c_str() + nodeVal.length(); |
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.
Nit: probably a good place to use auto.
| } | ||
|
|
||
| // try parsing it as a long | ||
| auto i = strtoll(nodeVal.c_str(), &pos, 10); |
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.
Is it useful to support decimal annotated integers? (YAML Spec - section 2.4)
For example: +1234. I'm not sure if strtoll supports that or not.
|
|
||
| def install | ||
| args = std_cmake_args | ||
| # if build.with? "static-lib" |
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.
Did you mean to leave these comment lines in? Do they need to be uncommented?
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
No description provided.