asimov-cli 25.4.0

ASIMOV Command-Line Interface (CLI)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// This is free and unencumbered software released into the public domain.

use crate::{BoxError, StandardOptions};

pub async fn port(_flags: &StandardOptions) -> Result<(), BoxError> {
    let port = std::env::var("ASIMOV_PROXY_PORT")
        .ok()
        .and_then(|input| input.parse::<u16>().ok())
        .unwrap_or(1920);
    println!("{}", port);
    Ok(())
}