/// Dispatch to a sub-command.
Dispatch to a sub-command.
Dispatch to a sub - command .
pub async fn product_bundle_plugin_impl<W>(
    sdk: Sdk,
    command: ProductBundleCommand,
    writer: &mut W,
) -> Result<()>
where
    W: Write + Sync,
{
    match &command.sub {
        SubCommand::List(cmd) => pb_list(sdk, writer, &cmd).await?,
        SubCommand::Get(cmd) => pb_get(sdk, writer, &cmd).await?,
        SubCommand::Create(cmd) => pb_create(&cmd).await?,
    }
    Ok(())
}
pub async fn product_bundle_plugin_impl < W > ( sdk : Sdk , command : ProductBundleCommand , writer : & mut W , ) -> Result < ( ) > where W : Write + Sync , { match & command . sub { SubCommand :: List ( cmd ) => pb_list ( sdk , writer , & cmd ) . await ? , SubCommand :: Get ( cmd ) => pb_get ( sdk , writer , & cmd ) . await ? , SubCommand :: Create ( cmd ) => pb_create ( & cmd ) . await ? , } Ok ( ( ) ) }
Dispatch to a sub-command.
Dispatch to a sub - command .
sdk
Sdk
command
ProductBundleCommand
writer
&mut W