(config: Config, cmd: &str, args: &ArgMatches)
| 86 | } |
| 87 | |
| 88 | async fn exec_subcommand(config: Config, cmd: &str, args: &ArgMatches) -> Result<(), anyhow::Error> { |
| 89 | match cmd { |
| 90 | "show" => exec_show(config, args).await, |
| 91 | unknown => Err(anyhow::anyhow!("Invalid subcommand: {unknown}")), |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | async fn exec_show(config: Config, args: &ArgMatches) -> Result<(), anyhow::Error> { |
| 96 | let include_token = args.get_flag("token"); |