refactor(pedm): modify serve arguments#1301
Conversation
- `serve` arguments are changed - it now takes the `Config` struct instead of a path - pipe name is now part of `Config` rather than a direct argument - `Config` struct is now exported as `devolutions_pedm::Config` - it can be used by server implementations directly - `serve` is now exported as `devolutions_pedm::serve`
Let maintainers know that an action is required on their side
|
This commit makes it public again. It is used by the generate-openapi tool in the `devolutions_pedm::api::openapi` call.
This adds changes added to PR #1301.
| impl Config { | ||
| /// Creates a new config with the default values for a new setup. | ||
| fn standard() -> Self { | ||
| pub fn standard() -> Self { |
There was a problem hiding this comment.
note: Sounds like it should be Default::default()
Benoît Cortier (CBenoit)
left a comment
There was a problem hiding this comment.
LGTM! It’s better that way. Thank you!
servenow takes aConfigstruct rather than a pathConfigrather than a direct argumentConfigstruct is now exported asdevolutions_pedm::Configserveis now exported asdevolutions_pedm::serve