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