harmont_cli/builtin/
version.rs1use anyhow::Result;
5use hm_plugin_protocol::HM_PLUGIN_API_VERSION;
6
7use crate::plugin::{PluginRegistry, RegistryConfig};
8
9#[allow(clippy::print_stdout)]
11#[allow(clippy::unused_async)]
13pub async fn run() -> Result<()> {
20 let reg = PluginRegistry::load(RegistryConfig {
21 auto_discover: true,
22 ..Default::default()
23 })?;
24 println!("hm {}", env!("CARGO_PKG_VERSION"));
25 println!("plugin api version: {HM_PLUGIN_API_VERSION}");
26 let count = reg.manifests().count();
27 println!("plugins loaded: {count}");
28 Ok(())
29}