microsoft/openvmm

Public

mirrored from https://github.com/microsoft/openvmmAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
15e07a8246fa7bad80ef06f167641da58f4e021b

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

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)]
5pub struct ListPatches;
6
7impl 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