changesette 2.0.0

A version and changelog manager for single-package applications, using the changesets file format
1
2
3
4
5
6
7
8
9
10
11
12
use std::path::Path;

use anyhow::Result;

use crate::package_json::PackageJson;

/// Prints the current version from the working tree's package.json to stdout
/// as a bare semver string.
pub(crate) fn run() -> Result<()> {
    println!("{}", PackageJson::load(Path::new("."))?.version());
    Ok(())
}