shadow_drive_cli/
process.rs

1use super::Command;
2use solana_sdk::signature::Signer;
3
4impl Command {
5    pub async fn process<T: Signer>(
6        &self,
7        signer: &T,
8        client_signer: T,
9        rpc_url: &str,
10        skip_confirm: bool,
11        auth: Option<String>,
12    ) -> anyhow::Result<()> {
13        println!();
14        match self {
15            Command::DriveCommand(drive_command) => {
16                drive_command
17                    .process(signer, client_signer, rpc_url, skip_confirm, auth)
18                    .await
19            }
20
21            Command::NftCommand(nft_command) => {
22                nft_command.process(signer, client_signer, rpc_url).await
23            }
24        }
25    }
26}