-
Notifications
You must be signed in to change notification settings - Fork 128
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
SetEnv added for plugin Config as well #1764
SetEnv added for plugin Config as well #1764
Conversation
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.
See: #1761 which also extends the data flowing to PluginProcess. Prefer to keep it all strong typed (use a C struct or class) and send each element as a seperate (yet repeating) entry on the command line. See inline comments.
I think it is good to also first include thepull request sted above as this might otherswise be difficult to merge (both add functionality in the same areas)
193d426
to
b5c2081
Compare
b5c2081
to
bb0c2b1
Compare
7433c7f
to
9cf00eb
Compare
9cf00eb
to
628d5d8
Compare
Source/Thunder/PluginServer.h
Outdated
Metadata::Service result; | ||
GetMetadata(result); | ||
result.ToString(info); | ||
return (Core::ERROR_NONE); | ||
} | ||
std::vector<RPC::Object::Environment> SubstituteList(const std::vector<RPC::Object::Environment>& environments) const { |
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.
Why do we want to create a "new" list. Can we not just reuse the old list ? It ssaves a lot of memory and if we call this the assumption is that there is no need to "save" the old one..
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.
addressed
} | ||
return environmentList; | ||
} | ||
static RPC::Object::Environment Info(const string& env, RPC::Object::Environment::Scope overriding) |
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.
This seems to be a parser of a parameter received (env) to an RPC::Object::Environment, why could this not be a constructor of the RPC::Object::Environment class?
Maybe an idea to also creat the string from the parameter there (in the RPC::Object::Environment) as well. A ToStringMethod, that concattenaats the keyand value, and escaped the '" ?
No description provided.