wash-cli 0.39.0

wasmCloud Shell (wash) CLI tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Functionality enabling the `wash link` group of subcommands

use anyhow::Result;
use wash_lib::cli::link::LinkCommand;
use wash_lib::cli::{CommandOutput, OutputKind};

mod del;
mod put;
mod query;

/// Invoke `wash link` subcommand
pub async fn invoke(command: LinkCommand, output_kind: OutputKind) -> Result<CommandOutput> {
    match command {
        LinkCommand::Del(cmd) => del::invoke(cmd, output_kind).await,
        LinkCommand::Put(cmd) => put::invoke(cmd, output_kind).await,
        LinkCommand::Query(cmd) => query::invoke(cmd, output_kind).await,
    }
}