lightshuttle 0.2.0

Lightweight developer-time orchestrator for polyglot teams
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! `lightshuttle manifest`.

use std::path::Path;

use anyhow::Result;

use super::{ExitOutcome, load_manifest};

/// Dump the resolved manifest as YAML on stdout.
pub(crate) fn run(file: &Path) -> Result<ExitOutcome> {
    let manifest = load_manifest(file)?;
    let yaml = manifest.to_yaml()?;
    print!("{yaml}");
    Ok(ExitOutcome::Success)
}