php-version-manager 1.0.4

A blazing fast, zero-configuration PHP version manager
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::fs;
use anyhow::Result;
use clap::Parser;

/// Print the currently active PHP version
#[derive(Parser, Debug)]
pub struct Current;

impl Current {
    pub async fn call(self) -> Result<()> {
        let current = fs::get_current_version();
        println!("{}", current);
        Ok(())
    }
}