Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added debug trace with DSC version #250

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dsc/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub enum OutputFormat {
}

#[derive(Debug, Parser)]
#[clap(name = "dsc", version = "3.0.0-alpha.4", about = "Apply configuration or invoke specific DSC resources", long_about = None)]
#[clap(name = "dsc", version = env!("CARGO_PKG_VERSION"), about = "Apply configuration or invoke specific DSC resources", long_about = None)]
pub struct Args {
/// The subcommand to run
#[clap(subcommand)]
Expand Down
4 changes: 3 additions & 1 deletion dsc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use clap_complete::generate;
use std::io::{self, Read};
use std::process::exit;
use sysinfo::{Process, ProcessExt, RefreshKind, System, SystemExt, get_current_pid, ProcessRefreshKind};
use tracing::{Level, error, info, warn};
use tracing::{Level, error, info, warn, debug};

#[cfg(debug_assertions)]
use crossterm::event;
Expand Down Expand Up @@ -45,6 +45,8 @@ fn main() {
eprintln!("Unable to set global default subscriber");
}

debug!("Running dsc {}", env!("CARGO_PKG_VERSION"));

let input = if args.input.is_some() {
args.input
} else if args.input_file.is_some() {
Expand Down