mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-04 06:35:58 -05:00
stop using cargo pkg version
One fewer thing to manage at release time.
This commit is contained in:
@@ -39,6 +39,7 @@ pub fn run(args: Args) -> Result<i32, Error> {
|
||||
preset_journal: &args.preset_journal,
|
||||
no_vacuum: args.no_vacuum,
|
||||
},
|
||||
crate::VERSION,
|
||||
&mut conn,
|
||||
)?;
|
||||
Ok(0)
|
||||
|
||||
@@ -25,9 +25,11 @@ mod bundled_ui;
|
||||
|
||||
const DEFAULT_DB_DIR: &str = "/var/lib/moonfire-nvr/db";
|
||||
|
||||
const VERSION: &str = git_version::git_version!(args = ["--always", "--dirty"]);
|
||||
|
||||
/// Moonfire NVR: security camera network video recorder.
|
||||
#[derive(Bpaf, Debug)]
|
||||
#[bpaf(options, version)]
|
||||
#[bpaf(options, version(VERSION))]
|
||||
enum Args {
|
||||
// See docstrings of `cmds::*::Args` structs for a description of the respective subcommands.
|
||||
Check(#[bpaf(external(cmds::check::args))] cmds::check::Args),
|
||||
|
||||
Reference in New Issue
Block a user