Finish LogFile format and patch template/logfile.ron

This commit is contained in:
Cutieguwu
2025-03-25 12:14:24 -04:00
parent aec577e93b
commit f791675d3a
5 changed files with 45 additions and 20 deletions

View File

@@ -14,7 +14,10 @@ impl TryFrom<File> for LogFile {
}
#[derive(Debug, Deserialize)]
struct GameRecord([Option<Period>; 4]);
struct GameRecord {
version: semver::Version,
periods: Vec<Option<Period>>,
}
#[derive(Debug, Deserialize)]
struct Period {
@@ -57,7 +60,7 @@ enum Down {
Second,
Third,
Fourth,
Pat,
PointAfterTouchdown,
}
impl Down {

View File

@@ -12,7 +12,9 @@ struct Args {
short,
long,
value_hint = clap::ValueHint::DirPath,
default_value = std::env::current_dir().expect("Failed to get current working dir.").into_os_string()
default_value = std::env::current_dir()
.expect("Failed to get current working dir.")
.into_os_string()
)]
logfile_path: PathBuf,
}