pub async fn run_init<R, W, Fut>(
reader: &mut R,
writer: &mut W,
config_path: &Path,
profile_arg: Option<&str>,
validate: impl Fn(String, String, String) -> Fut,
) -> Result<(), ApiError>Expand description
Interactive init flow with injectable IO and validator for testing.
validate receives (account_id, client_id, client_secret) and returns
Some(display_name) on success or None on auth failure.