1pub mod constraints;
4pub mod dates;
5pub mod diag;
6pub mod lock;
7pub mod lookups;
8pub mod manager;
9pub mod manifest;
10mod mutable;
11pub mod occurrences;
12pub mod options;
13pub mod packages;
14pub mod plugins;
15pub mod preflight;
16pub mod profiles;
17pub mod project;
18pub mod render;
19pub mod run;
20pub mod schedule;
21pub mod secrets;
22pub mod selector;
23pub mod sqlsplit;
24pub mod target;
25pub mod values;
26pub mod yaml;
27
28pub use diag::{Diagnostic, Diagnostics, Severity};
29
30pub fn version() -> &'static str {
32 match env!("CARGO_PKG_VERSION") {
33 "0.0.0" => "unreleased",
34 v => v,
35 }
36}
37
38pub fn dre_home() -> std::path::PathBuf {
40 std::env::home_dir().unwrap_or_default().join(".dre")
41}
42
43pub fn slash(p: &std::path::Path) -> std::path::PathBuf {
45 std::path::PathBuf::from(p.to_string_lossy().replace('\\', "/"))
46}