microsoft/openvmm

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
c8f70de480b5afd238530bd9f422db6753a653b2

Branches

Tags

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

Clone

HTTPS

Download ZIP

flowey/flowey_cli/src/cli/debug/list_nodes.rs

20lines · modecode

1// Copyright (C) Microsoft Corporation. All rights reserved.
2
3/// (debug) list all registered flowey nodes
4#[derive(clap::Args)]
5pub struct ListNodes;
6
7impl ListNodes {
8 pub fn run(self) -> anyhow::Result<()> {
9 // FUTURE: it might be worth improving this output to leverage the DAG?
10 let mut v = flowey_core::node::list_all_registered_nodes()
11 .map(|h| h.modpath())
12 .collect::<Vec<_>>();
13 v.sort();
14 for node in v {
15 println!("{node}")
16 }
17
18 Ok(())
19 }
20}
21