1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use super::Command;
use solana_sdk::signature::Signer;

impl Command {
    pub async fn process<T: Signer>(
        &self,
        signer: &T,
        client_signer: T,
        rpc_url: &str,
        skip_confirm: bool,
        auth: Option<String>,
    ) -> anyhow::Result<()> {
        println!();
        match self {
            Command::DriveCommand(drive_command) => {
                drive_command
                    .process(signer, client_signer, rpc_url, skip_confirm, auth)
                    .await
            }

            Command::NftCommand(nft_command) => {
                nft_command.process(signer, client_signer, rpc_url).await
            }
        }
    }
}