Skip to content
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

[wicket] add rack-update clear #4451

Merged
merged 5 commits into from
Nov 8, 2023

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Nov 7, 2023

As a followup to #4062, add a command to clear update state via the CLI.

To test this command, we make it have a --message-format option which outputs JSON. This PR also adds support for reading that JSON, by moving ClearUpdateStateResponse into wicket-common. Doing so meant that SpIdentifier and SpType also moved into wicket-common. (We should maybe unify this with the gateway types, but that isn't necessary for this change.)

Depends on #4450.

(Side note: I tried implementing --message-format json for rack-update start and attach as well, but that's a somewhat bigger project with dubious upside so I shelved it for now. Implementing clear was easy.)

Created using spr 1.3.5
Created using spr 1.3.5
wicket/src/cli/rack_update.rs Show resolved Hide resolved
davepacheco and others added 2 commits November 8, 2023 13:18
Created using spr 1.3.5

[skip ci]
Created using spr 1.3.5
@sunshowers sunshowers changed the base branch from sunshowers/spr/main.wicket-add-rack-update-clear to main November 8, 2023 21:20
@sunshowers sunshowers enabled auto-merge (squash) November 8, 2023 21:26
@sunshowers sunshowers merged commit 026b8e6 into main Nov 8, 2023
20 of 21 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/wicket-add-rack-update-clear branch November 8, 2023 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants