-
Notifications
You must be signed in to change notification settings - Fork 1
migrate to Dropshot API manager #141
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
migrate to Dropshot API manager #141
Conversation
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
#[clap(name = "dpd")] | ||
pub(crate) enum Args { | ||
/// Run the Dendrite API server. | ||
Run(Box<Opt>), |
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.
Now that we only have the run
command, we can just drop the subcommand structure entirely.
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.
In general, we've retained the subcommand structure in other servers even if it's the only command.
If you still think we should get rid of the run command, can this be a followup? Would have to update all the places that run the binary as well, which adds risk for something that's pretty time-constrained.
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.
If our standard practice is to keep the vestigial run
subcommand, I'm fine with that.
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.
Thanks -- see https://github.com/oxidecomputer/omicron/blob/5f7ab65c8c8b215c6cf71b0d6e018574aa2e7f92/sled-agent/src/bin/sled-agent.rs#L25-L31 for an example. I guess one advantage is that if we do need to add a second command in the future, the places that run the binary don't have to be updated again.
Part of oxidecomputer/omicron#8922.