vs_core/service/available.rs
1use vs_registry::RegistryEntry;
2
3use crate::{App, CoreError};
4
5impl App {
6 /// Lists plugins in the available registry index.
7 pub fn available_plugins(&self) -> Result<Vec<RegistryEntry>, CoreError> {
8 self.refresh_registry_index_with_fallback()?;
9 self.registry.available_plugins().map_err(Into::into)
10 }
11
12 /// Lists plugins added to the local home.
13 pub fn added_plugins(&self) -> Result<Vec<RegistryEntry>, CoreError> {
14 self.registry.added_plugins().map_err(Into::into)
15 }
16}