mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
15 lines
479 B
Rust
15 lines
479 B
Rust
mod link;
|
|
mod unlink;
|
|
|
|
use anyhow::Result;
|
|
|
|
use super::{resolve_run_id, resolve_run_selector};
|
|
use crate::args::{ParentCommand, ParentNamespace};
|
|
use crate::command_context::CommandContext;
|
|
|
|
pub(crate) async fn dispatch(ns: ParentNamespace, base_ctx: &CommandContext) -> Result<()> {
|
|
match ns.command {
|
|
ParentCommand::Link(args) => link::link_command(args, base_ctx).await,
|
|
ParentCommand::Unlink(args) => unlink::unlink_command(args, base_ctx).await,
|
|
}
|
|
}
|