android-cli 0.2.0

Create, build, and release Android apps faster without Android Studio.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::{bail, Result};
use clap::Parser;

#[derive(Parser, Debug)]
pub struct Shell {}

pub fn handle(_args: Shell) -> Result<()> {
    // Try to run adb shell
    let query_status = android_cli::attach_shell()?;

    if !query_status.success() {
        bail!("failed to attach shell");
    }

    Ok(())
}