wash_cli/cmd/link/
mod.rs

1//! Functionality enabling the `wash link` group of subcommands
2
3use anyhow::Result;
4use wash_lib::cli::link::LinkCommand;
5use wash_lib::cli::{CommandOutput, OutputKind};
6
7mod del;
8mod put;
9mod query;
10
11/// Invoke `wash link` subcommand
12pub async fn invoke(command: LinkCommand, output_kind: OutputKind) -> Result<CommandOutput> {
13    match command {
14        LinkCommand::Del(cmd) => del::invoke(cmd, output_kind).await,
15        LinkCommand::Put(cmd) => put::invoke(cmd, output_kind).await,
16        LinkCommand::Query(cmd) => query::invoke(cmd, output_kind).await,
17    }
18}