pyapp 0.29.0

Runtime installer for Python applications
#![allow(clippy::eq_op)]

use anyhow::Result;
use clap::Args;

use crate::app;

/// Output the path to the installed Python
#[derive(Args, Debug)]
#[command(hide = env!("PYAPP_EXPOSE_PYTHON_PATH") == "0")]
pub struct Cli {}

impl Cli {
    pub fn exec(self) -> Result<()> {
        println!("{}", app::python_path().display());

        Ok(())
    }
}