flowey_cli/cli/debug/
list_patches.rs

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4/// (debug) list all registered patches
5#[derive(clap::Args)]
6pub struct ListPatches;
7
8impl 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}