microsoft/openvmm
Publicmirrored fromhttps://github.com/microsoft/openvmmAvailable
flowey/flowey_cli/src/cli/debug/list_patches.rs
20lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | /// (debug) list all registered patches |
| 5 | #[derive(clap::Args)] |
| 6 | pub struct ListPatches; |
| 7 | |
| 8 | impl ListPatches { |
| 9 | pub fn run(self) -> anyhow::Result<()> { |
| 10 | let mut v = flowey_core::patch::patchfn_by_modpath() |
| 11 | .keys() |
| 12 | .collect::<Vec<_>>(); |
| 13 | v.sort(); |
| 14 | for fn_name in v { |
| 15 | println!("{fn_name}") |
| 16 | } |
| 17 | |
| 18 | Ok(()) |
| 19 | } |
| 20 | } |
| 21 | |