feat(cli): add detailed version info w/ shadow

This commit is contained in:
LGUG2Z
2024-07-05 08:00:33 -07:00
parent 60bc96e9a5
commit 2a67c9c786
8 changed files with 256 additions and 116 deletions
+2
View File
@@ -34,6 +34,8 @@ uds_windows = "1"
which = "6"
win32-display-data = { workspace = true }
windows = { workspace = true }
shadow-rs = { workspace = true }
[build-dependencies]
reqwest = { version = "0.12", features = ["blocking"] }
shadow-rs = { workspace = true }
+2
View File
@@ -5,4 +5,6 @@ fn main() {
).unwrap().text().unwrap();
std::fs::write("applications.yaml", applications_yaml).unwrap();
}
shadow_rs::new().unwrap();
}
+3 -1
View File
@@ -99,6 +99,8 @@ lazy_static! {
};
}
shadow_rs::shadow!(build);
#[derive(thiserror::Error, Debug, miette::Diagnostic)]
#[error("{message}")]
#[diagnostic(code(komorebi::configuration), help("try fixing this syntax error"))]
@@ -815,7 +817,7 @@ struct EnableAutostart {
}
#[derive(Parser)]
#[clap(author, about, version)]
#[clap(author, about, version = build::CLAP_LONG_VERSION)]
struct Opts {
#[clap(subcommand)]
subcmd: SubCommand,