Skip to main content

futucli/cli/dispatch/
account.rs

1use anyhow::Result;
2
3use crate::cmd;
4use crate::output::OutputFormat;
5
6pub(super) async fn dispatch_account(
7    gateway: &str,
8    output: OutputFormat,
9    args: crate::cli::commands::AccountArgs,
10) -> Result<()> {
11    let crate::cli::commands::AccountArgs {
12        market,
13        security_firm,
14        all,
15    } = args;
16    cmd::account::list_accounts(
17        gateway,
18        output,
19        market.as_deref(),
20        security_firm.as_deref(),
21        all,
22    )
23    .await
24}