mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
* wip * overhaul boot process * wip: new registry * wip * wip * wip * wip * wip * wip * os registry complete * ui fixes * fixes * fixes * more fixes * fix merkle archive
23 lines
621 B
Rust
23 lines
621 B
Rust
use rpc_toolkit::{from_fn_async, Context, HandlerExt, ParentHandler};
|
|
|
|
use crate::context::CliContext;
|
|
use crate::util::serde::HandlerExtSerde;
|
|
|
|
pub const SIG_CONTEXT: &str = "startos";
|
|
|
|
pub mod asset;
|
|
pub mod index;
|
|
pub mod version;
|
|
|
|
pub fn os_api<C: Context>() -> ParentHandler<C> {
|
|
ParentHandler::new()
|
|
.subcommand(
|
|
"index",
|
|
from_fn_async(index::get_os_index)
|
|
.with_display_serializable()
|
|
.with_call_remote::<CliContext>(),
|
|
)
|
|
.subcommand("asset", asset::asset_api::<C>())
|
|
.subcommand("version", version::version_api::<C>())
|
|
}
|