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