pyrls 0.1.0

A single-binary release automation tool for Python projects
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::Result;

use crate::{cli::Cli, config::Config};

pub fn run(cli: &Cli) -> Result<()> {
    let config = Config::load(&cli.config)?;
    config.validate()?;

    println!(
        "Config is valid: release branch={}, version files={}",
        config.release.branch,
        config.version_files.len()
    );

    Ok(())
}